You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: _device_registry_enrich_activity.rs
    path of file: ./repos/aws-sdk-rust/sdk/iotanalytics/src/types
    
    the code of the file until where you have to start completion: // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>An activity that adds data from the IoT device registry to your message.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeviceRegistryEnrichActivity {
    /// <p>The name of the <code>deviceRegistryEnrich</code> activity.</p>
    pub name: ::std::string::String,
    /// <p>The name of the attribute that is added to the message.</p>
    pub attribute: ::std::string::String,
    /// <p>The name of the IoT device whose registry information is added to the message.</p>
    pub thing_name: ::std::string::String,
    /// <p>The ARN of the role that allows access to the device's registry information.</p>
    pub role_arn: ::std::string::String,
    /// <p>The next activity in the pipeline.</p>
    pub next: ::std::option::Option<::std::stri
    
    pub fn build(self) -> ::std::result::Result<crate::types::DeviceRegistryEnrichActivity, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::DeviceRegistryEnrichActivity {
            name: self.name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "name",
                    "name was not specified but it is required when building DeviceRegistryEnrichActivity",
                )
            })?,
            attribute: self.attribute.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "attribute",
                    "attribute was not specified but it is required when building DeviceRegistryEnrichActivity",
                )
            })?,
            thing_name: self.thing_name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "thing_name",
                    "thing_name was not specified but it is required when building DeviceRegistryEnrichActivity",
                )
            })?,
            role_arn: self.role_arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "role_arn",
                    "role_arn was not specified but it is required when building DeviceRegistryEnrichActivity",
                )
            })?,
            next: self.next,
        })
    }