fn from()

in sdk/core/azure_core_amqp/src/fe2o3/messaging/message_fields.rs [332:375]


    fn from(properties: fe2o3_amqp_types::messaging::Properties) -> Self {
        let mut amqp_message_properties = AmqpMessageProperties::default();

        if let Some(message_id) = properties.message_id {
            amqp_message_properties.message_id = Some(message_id.into());
        }
        if let Some(user_id) = properties.user_id {
            amqp_message_properties.user_id = Some(user_id.to_vec());
        }
        if let Some(to) = properties.to {
            amqp_message_properties.to = Some(to);
        }
        if let Some(subject) = properties.subject {
            amqp_message_properties.subject = Some(subject);
        }
        if let Some(reply_to) = properties.reply_to {
            amqp_message_properties.reply_to = Some(reply_to);
        }
        if let Some(correlation_id) = properties.correlation_id {
            amqp_message_properties.correlation_id = Some(correlation_id.into());
        }
        if let Some(content_type) = properties.content_type {
            amqp_message_properties.content_type = Some(content_type.into());
        }
        if let Some(content_encoding) = properties.content_encoding {
            amqp_message_properties.content_encoding = Some(content_encoding.into());
        }
        if let Some(absolute_expiry_time) = properties.absolute_expiry_time {
            amqp_message_properties.absolute_expiry_time = Some(absolute_expiry_time.into());
        }
        if let Some(creation_time) = properties.creation_time {
            amqp_message_properties.creation_time = Some(creation_time.into());
        }
        if let Some(group_id) = properties.group_id {
            amqp_message_properties.group_id = Some(group_id);
        }
        if let Some(group_sequence) = properties.group_sequence {
            amqp_message_properties.group_sequence = Some(group_sequence);
        }
        if let Some(reply_to_group_id) = properties.reply_to_group_id {
            amqp_message_properties.reply_to_group_id = Some(reply_to_group_id);
        }
        amqp_message_properties
    }