Trait struct_deser::Identifier [] [src]

pub trait Identifier {
    type IdentifierType;

    const IDENTIFIER: Self::IdentifierType;
}

This trait can be used for marking specific implementation with a constant, which can be used for matching, when determinint the type of message. This doesn't influence derived (de)serialization in any way.

Associated Types

Type of the identifier.

Associated Constants

The identifier.

Implementors