[][src]Struct feattle::FeattleDefinition

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>,
}

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

impl Clone for FeattleDefinition[src]

impl Debug for FeattleDefinition[src]

impl Serialize for FeattleDefinition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.