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: _resource_string_filter.rs
    path of file: ./repos/aws-sdk-rust/sdk/inspector2/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>A resource string filter for a software bill of materials report.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ResourceStringFilter {
    /// <p>The filter's comparison.</p>
    pub comparison: crate::types::ResourceStringComparison,
    /// <p>The filter's value.</p>
    pub value: ::std::string::String,
}
impl ResourceStringFilter {
    /// <p>The filter's comparison.</p>
    pub fn comparison(&self) -> &crate::types::ResourceStringComparison {
        &self.comparison
    }
    /// <p>The filter's value.</p>
    pub fn value(&self) -> &str {
        use std::ops::Deref;
        self.value.deref()
    }
}
impl Resour
    
    pub fn build(self) -> ::std::result::Result<crate::types::ResourceStringFilter, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::ResourceStringFilter {
            comparison: self.comparison.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "comparison",
                    "comparison was not specified but it is required when building ResourceStringFilter",
                )
            })?,
            value: self.value.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "value",
                    "value was not specified but it is required when building ResourceStringFilter",
                )
            })?,
        })
    }