Skip to main content

encode

Function encode 

pub fn encode<R>(
    action: &<R as Resource>::Action,
) -> Result<EncodedAction, ActionError>
where R: Resource,
Expand description

Encode a resource action under its registry type id.

ยงErrors

Returns ActionError::Encode when the action does not serialize.