fn validate_intl_info(&self, info: IntlInfo) -> Result<(), ControllerError> {
        if let Some(time_zone_id) = info.time_zone_id {
            // Make sure the given time zone ID is valid.
            if !self.time_zone_ids.contains(time_zone_id.as_str()) {
                return Err(ControllerError::InvalidArgument(
                    SettingType::Intl,
                    "timezone id".into(),
                    time_zone_id.into(),
                ));
            }
        }

        Ok(())
    }
/// Checks if the given IntlInfo is valid.
Checks if the given IntlInfo is valid.
Checks if the given IntlInfo is valid .
fn validate_intl_info(&self, info: IntlInfo) -> Result<(), ControllerError> {
        if let Some(time_zone_id) = info.time_zone_id {
            // Make sure the given time zone ID is valid.
            if !self.time_zone_ids.contains(time_zone_id.as_str()) {
                return Err(ControllerError::InvalidArgument(
                    SettingType::Intl,
                    "timezone id".into(),
                    time_zone_id.into(),
                ));
            }
        }
        Ok(())
    }
fn validate_intl_info ( & self , info : IntlInfo ) -> Result < ( ) , ControllerError > { if let Some ( time_zone_id ) = info . time_zone_id { // Make sure the given time zone ID is valid. if ! self . time_zone_ids . contains ( time_zone_id . as_str ( ) ) { return Err ( ControllerError :: InvalidArgument ( SettingType :: Intl , " " . into ( ) , time_zone_id . into ( ) , ) ) ; } } Ok ( ( ) ) }
Checks if the given IntlInfo is valid.
Checks if the given IntlInfo is valid .
&self
info
IntlInfo
&self
info
IntlInfo