pub struct ConfigChange {
pub action: ConfigAction,
pub key: String,
pub value: Option<Value>,
pub hash: String,
pub source: Source,
pub actor: Actor,
pub at: i64,
pub pending: bool,
pub confirm_until: Option<i64>,
}Expand description
A change, as config.watch and Config::changes say it.
Fields§
§action: ConfigAction§key: String§value: Option<Value>The value in effect now (None for a secret).
hash: String§source: Source§actor: Actor§at: i64§pending: boolA Restart setting: stored, not in effect until the next start.
confirm_until: Option<i64>Trait Implementations§
Source§impl Clone for ConfigChange
impl Clone for ConfigChange
Source§impl Debug for ConfigChange
impl Debug for ConfigChange
Source§impl<'de> Deserialize<'de> for ConfigChange
impl<'de> Deserialize<'de> for ConfigChange
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 JsonSchema for ConfigChange
impl JsonSchema for ConfigChange
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ConfigChange
impl PartialEq for ConfigChange
Source§impl Serialize for ConfigChange
impl Serialize for ConfigChange
impl StructuralPartialEq for ConfigChange
Auto Trait Implementations§
impl Forget for ConfigChange
impl Freeze for ConfigChange
impl RefUnwindSafe for ConfigChange
impl Send for ConfigChange
impl Sync for ConfigChange
impl Unpin for ConfigChange
impl UnsafeUnpin for ConfigChange
impl UnwindSafe for ConfigChange
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