Struct feattle::FeattleDefinition
source · [−]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
sourceimpl Clone for FeattleDefinition
impl Clone for FeattleDefinition
sourcefn clone(&self) -> FeattleDefinition
fn clone(&self) -> FeattleDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FeattleDefinition
impl Debug for FeattleDefinition
sourceimpl Serialize for FeattleDefinition
impl Serialize for FeattleDefinition
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for FeattleDefinition
impl Send for FeattleDefinition
impl Sync for FeattleDefinition
impl Unpin for FeattleDefinition
impl UnwindSafe for FeattleDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more