pub struct ConfigMetadata {
pub name: String,
pub description: Option<String>,
pub version: String,
pub tags: Vec<String>,
pub enabled: bool,
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
pub author: Option<String>,
pub source: ConfigSource,
pub priority: u32,
}Expand description
Configuration metadata
Fields§
§name: StringConfiguration name/identifier
description: Option<String>Human-readable description
version: StringConfiguration version
Tags for categorization
enabled: boolWhether this configuration is enabled
created_at: DateTime<Utc>Creation timestamp
modified_at: DateTime<Utc>Last modification timestamp
Author/creator information
source: ConfigSourceConfiguration source (file, environment, default, etc.)
priority: u32Configuration priority (higher priority configs override lower)
Trait Implementations§
Source§impl Clone for ConfigMetadata
impl Clone for ConfigMetadata
Source§fn clone(&self) -> ConfigMetadata
fn clone(&self) -> ConfigMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigMetadata
impl Debug for ConfigMetadata
Source§impl Default for ConfigMetadata
impl Default for ConfigMetadata
Source§impl<'de> Deserialize<'de> for ConfigMetadata
impl<'de> Deserialize<'de> for ConfigMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ConfigMetadata
impl Serialize for ConfigMetadata
Auto Trait Implementations§
impl Freeze for ConfigMetadata
impl RefUnwindSafe for ConfigMetadata
impl Send for ConfigMetadata
impl Sync for ConfigMetadata
impl Unpin for ConfigMetadata
impl UnsafeUnpin for ConfigMetadata
impl UnwindSafe for ConfigMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ConfigSerializable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
impl<T> ConfigSerializable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more