pub trait EcucAbstractStringParamDef: EcucCommonAttributes {
// Required methods
fn set_max_length(
&self,
max_length: Option<u32>,
) -> Result<(), AutosarAbstractionError>;
fn max_length(&self) -> Option<u32>;
fn set_min_length(
&self,
min_length: Option<u32>,
) -> Result<(), AutosarAbstractionError>;
fn min_length(&self) -> Option<u32>;
fn set_regular_expression(
&self,
regular_expression: Option<&str>,
) -> Result<(), AutosarAbstractionError>;
fn regular_expression(&self) -> Option<String>;
fn set_default_value(
&self,
default_value: Option<&str>,
) -> Result<(), AutosarAbstractionError>;
fn default_value(&self) -> Option<String>;
}
Expand description
This trait provides the common operation shared by all string parameter definitions
Required Methods§
Sourcefn set_max_length(
&self,
max_length: Option<u32>,
) -> Result<(), AutosarAbstractionError>
fn set_max_length( &self, max_length: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or remove the max length attribute
Sourcefn max_length(&self) -> Option<u32>
fn max_length(&self) -> Option<u32>
get the max length attribute
Sourcefn set_min_length(
&self,
min_length: Option<u32>,
) -> Result<(), AutosarAbstractionError>
fn set_min_length( &self, min_length: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or remove the min length attribute
Sourcefn min_length(&self) -> Option<u32>
fn min_length(&self) -> Option<u32>
get the min length attribute
Sourcefn set_regular_expression(
&self,
regular_expression: Option<&str>,
) -> Result<(), AutosarAbstractionError>
fn set_regular_expression( &self, regular_expression: Option<&str>, ) -> Result<(), AutosarAbstractionError>
set or remove the regular expression attribute The regular expression is a string that is used to validate the string parameter
Sourcefn regular_expression(&self) -> Option<String>
fn regular_expression(&self) -> Option<String>
get the regular expression attribute The regular expression is a string that is used to validate the string parameter
Sourcefn set_default_value(
&self,
default_value: Option<&str>,
) -> Result<(), AutosarAbstractionError>
fn set_default_value( &self, default_value: Option<&str>, ) -> Result<(), AutosarAbstractionError>
set or remove the default value attribute
Sourcefn default_value(&self) -> Option<String>
fn default_value(&self) -> Option<String>
get the default value attribute
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.