Macro asn1_cereal::ber_sequence_deserialize [] [src]

macro_rules! ber_sequence_deserialize {
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident $tag:ident [$($fields:ident)*] }
      $item:ident; $($args:tt)*) => { ... };
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident $tag:ident [$($fields:ident)*] }
      $item:ident (); $($args:tt)*) => { ... };
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident $tag:ident [$($fields:ident)*] }
      $field:ident ([$($opts:tt)*]); $($args:tt)*) => { ... };
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident $tag:ident [$($fields:ident)*] }
      $item:ident (OPTIONAL); $($args:tt)*) => { ... };
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident $tag:ident [$($fields:ident)*] }
      $field:ident ([$($opts:tt)*] OPTIONAL); $($args:tt)*) => { ... };
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident $tag:ident [$($fields:ident)*] }
      $item:ident (DEFAULT $default:expr); $($args:tt)*) => { ... };
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident $tag:ident [$($fields:ident)*] }
      $field:ident ([$($opts:tt)*] DEFAULT $default:expr); $($args:tt)*) => { ... };
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident } $tag:expr, $our_tag:expr) => { ... };
    (_ { $rs_type:ident $e:ident $reader:ident $count:ident $tag:ident [ $($field:ident)* ] }) => { ... };
    ($rs_type:ident, $($args:tt)*) => { ... };
}

This macro defines the BerDeserialize trait for a rust struct. The code generated will deserialize the specified fields in the order that they are given.