rasn_compiler::intermediate::constraints

Trait PropertySetting

Source
pub trait PropertySetting {
    const NAME: &'static str;

    // Required methods
    fn setting_name(&self) -> String;
    fn from_str(value: &str) -> Result<Self, Box<dyn Error>>
       where Self: Sized;
}

Required Associated Constants§

Source

const NAME: &'static str

Required Methods§

Source

fn setting_name(&self) -> String

Source

fn from_str(value: &str) -> Result<Self, Box<dyn Error>>
where Self: Sized,

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§

Source§

impl PropertySetting for BasicSettings

Source§

const NAME: &'static str = "Basic"

Source§

impl PropertySetting for DateSettings

Source§

const NAME: &'static str = "Date"

Source§

impl PropertySetting for IntervalTypeSettings

Source§

const NAME: &'static str = "Interval-type"

Source§

impl PropertySetting for LocalOrUtcSettings

Source§

const NAME: &'static str = "Local-or-UTC"

Source§

impl PropertySetting for MidnightSettings

Source§

const NAME: &'static str = "Midnight"

Source§

impl PropertySetting for RecurrenceSettings

Source§

const NAME: &'static str = "Recurrence"

Source§

impl PropertySetting for StartEndPointSettings

Source§

const NAME: &'static str = "SE-point"

Source§

impl PropertySetting for TimeSettings

Source§

const NAME: &'static str = "Time"

Source§

impl PropertySetting for YearSettings

Source§

const NAME: &'static str = "Year"