Trait EcucAbstractStringParamDef

Source
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§

Source

fn set_max_length( &self, max_length: Option<u32>, ) -> Result<(), AutosarAbstractionError>

set or remove the max length attribute

Source

fn max_length(&self) -> Option<u32>

get the max length attribute

Source

fn set_min_length( &self, min_length: Option<u32>, ) -> Result<(), AutosarAbstractionError>

set or remove the min length attribute

Source

fn min_length(&self) -> Option<u32>

get the min length attribute

Source

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

Source

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

Source

fn set_default_value( &self, default_value: Option<&str>, ) -> Result<(), AutosarAbstractionError>

set or remove the default value attribute

Source

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.

Implementors§