Trait salak::IsProperty[][src]

pub trait IsProperty: Sized {
    fn from_property(_: Property<'_>) -> Result<Self, PropertyError>;

    fn is_empty(p: &Property<'_>) -> bool { ... }
}
Expand description

Any object implements this trait is automatically implmenting crate::FromEnvironment.

This trait defines how to parse value from property, and defines specific behaviors such as how empty string being parsed.

Required methods

Parse value from property.

Provided methods

Check if empty string means property does not exist. In most case this is true, except String.

Implementations on Foreign Types

Implementors