pub fn gen_properties<'a, W: Write + BackToTheBuffer + 'a>(
        props: &'a AMQPProperties,
    ) -> impl SerializeFn<W> + 'a {
        cookie_factory::sequence::pair(gen_short_uint(props.bitmask()), move |mut input| {
            if let Some(prop) = props.content_type.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.content_encoding.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.headers.as_ref() {
                input = gen_field_table(prop)(input)?;
            }
            if let Some(prop) = props.delivery_mode {
                input = gen_short_short_uint(prop)(input)?;
            }
            if let Some(prop) = props.priority {
                input = gen_short_short_uint(prop)(input)?;
            }
            if let Some(prop) = props.correlation_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.reply_to.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.expiration.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.message_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.timestamp {
                input = gen_timestamp(prop)(input)?;
            }
            if let Some(prop) = props.kind.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.user_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.app_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.cluster_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            Ok(input)
        })
    }
/// Serialize basic properties (Generated)
Serialize basic properties (Generated)
Serialize basic properties ( Generated )
pub fn gen_properties<'a, W: Write + BackToTheBuffer + 'a>(
        props: &'a AMQPProperties,
    ) -> impl SerializeFn<W> + 'a {
        cookie_factory::sequence::pair(gen_short_uint(props.bitmask()), move |mut input| {
            if let Some(prop) = props.content_type.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.content_encoding.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.headers.as_ref() {
                input = gen_field_table(prop)(input)?;
            }
            if let Some(prop) = props.delivery_mode {
                input = gen_short_short_uint(prop)(input)?;
            }
            if let Some(prop) = props.priority {
                input = gen_short_short_uint(prop)(input)?;
            }
            if let Some(prop) = props.correlation_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.reply_to.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.expiration.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.message_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.timestamp {
                input = gen_timestamp(prop)(input)?;
            }
            if let Some(prop) = props.kind.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.user_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.app_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            if let Some(prop) = props.cluster_id.as_ref() {
                input = gen_short_string(prop.as_str())(input)?;
            }
            Ok(input)
        })
    }
pub fn gen_properties < ' a , W : Write + BackToTheBuffer + ' a > ( props : & ' a AMQPProperties , ) -> impl SerializeFn < W > + ' a { cookie_factory :: sequence :: pair ( gen_short_uint ( props . bitmask ( ) ) , move | mut input | { if let Some ( prop ) = props . content_type . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . content_encoding . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . headers . as_ref ( ) { input = gen_field_table ( prop ) ( input ) ? ; } if let Some ( prop ) = props . delivery_mode { input = gen_short_short_uint ( prop ) ( input ) ? ; } if let Some ( prop ) = props . priority { input = gen_short_short_uint ( prop ) ( input ) ? ; } if let Some ( prop ) = props . correlation_id . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . reply_to . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . expiration . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . message_id . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . timestamp { input = gen_timestamp ( prop ) ( input ) ? ; } if let Some ( prop ) = props . kind . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . user_id . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . app_id . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } if let Some ( prop ) = props . cluster_id . as_ref ( ) { input = gen_short_string ( prop . as_str ( ) ) ( input ) ? ; } Ok ( input ) } ) }
Serialize basic properties (Generated)
Serialize basic properties ( Generated )
props
&'a AMQPProperties