alloy_json_abi::serde_state_mutability_compat

Function serialize

Source
pub fn serialize<S>(
    state_mutability: &StateMutability,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,
Expand description

Serializes a StateMutability as a single-field struct (stateMutability).

See the module-level documentation for more information.