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
fn from_property(_: Property<'_>) -> Result<Self, PropertyError>
fn from_property(_: Property<'_>) -> Result<Self, PropertyError>
Parse value from property.