Skip to main content

Decode

Derive Macro Decode 

Source
#[derive(Decode)]
{
    // Attributes available to this derive:
    #[ssh]
}
Available on crate feature derive only.
Expand description

Derive the Decode trait for a struct or enum.

Use #[ssh(error = crate::Error)] on the type to override the default ssh_encoding::Error. The chosen type must implement From<ssh_encoding::Error> and From for each field’s decoding error.