pub fn validate(&self) -> Result<Wfn<'a>> {
        let mut wfn = Wfn::new();
        macro_rules! add_field {
            ($field:ident, $setter:ident) => {
                if let Some($field) = self.$field {
                    wfn.$setter($field)?;
                }
            };
        }
        add_field!(part, set_part);
        add_field!(vendor, set_vendor);
        add_field!(product, set_product);
        add_field!(version, set_version);
        add_field!(update, set_update);
        add_field!(language, set_language);
        add_field!(edition, set_edition);
        add_field!(sw_edition, set_sw_edition);
        add_field!(target_sw, set_target_sw);
        add_field!(target_hw, set_target_hw);
        add_field!(other, set_other);

        Ok(wfn)
    }
/// Parse the strings set in the builder as Wfn attribute values, validating
/// their contents.
Parse the strings set in the builder as Wfn attribute values, validating
their contents.
Parse the strings set in the builder as Wfn attribute values validating their contents .
pub fn validate(&self) -> Result<Wfn<'a>> {
        let mut wfn = Wfn::new();
        macro_rules! add_field {
            ($field:ident, $setter:ident) => {
                if let Some($field) = self.$field {
                    wfn.$setter($field)?;
                }
            };
        }
        add_field!(part, set_part);
        add_field!(vendor, set_vendor);
        add_field!(product, set_product);
        add_field!(version, set_version);
        add_field!(update, set_update);
        add_field!(language, set_language);
        add_field!(edition, set_edition);
        add_field!(sw_edition, set_sw_edition);
        add_field!(target_sw, set_target_sw);
        add_field!(target_hw, set_target_hw);
        add_field!(other, set_other);
        Ok(wfn)
    }
pub fn validate ( & self ) -> Result < Wfn < ' a > > { let mut wfn = Wfn :: new ( ) ; macro_rules! add_field { ( $field : ident $setter : ident ) => { if let Some ( $field ) self $field { wfn $setter ( $field ) } } ; } add_field ! ( part set_part ) ; add_field ! ( vendor set_vendor ) ; add_field ! ( product set_product ) ; add_field ! ( version set_version ) ; add_field ! ( update set_update ) ; add_field ! ( language set_language ) ; add_field ! ( edition set_edition ) ; add_field ! ( sw_edition set_sw_edition ) ; add_field ! ( target_sw set_target_sw ) ; add_field ! ( target_hw set_target_hw ) ; add_field ! ( other set_other ) ; Ok ( wfn ) }
Parse the strings set in the builder as Wfn attribute values, validating
their contents.
Parse the strings set in the builder as Wfn attribute values validating their contents .
&self
&self