Struct feattle::FeattleDefinition[][src]

pub struct FeattleDefinition {
    pub key: &'static str,
    pub description: String,
    pub format: SerializedFormat,
    pub value: Value,
    pub value_overview: String,
    pub default: Value,
    pub modified_at: Option<DateTime<Utc>>,
    pub modified_by: Option<String>,
}
Expand description

A data struct, describing a single feattle.

Fields

key: &'static str

The feattle’s name

description: String

Its documentation

format: SerializedFormat

The precise description of its format

value: Value

Its current in-memory value, as JSON

value_overview: String

A short human description of its current in-memory value

default: Value

Its default value, as JSON

modified_at: Option<DateTime<Utc>>

The last time it was modified by an user

modified_by: Option<String>

The user that last modified it

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.