pub enum SettingEvent {
Setting(KeyInfo),
Set {
key: String,
previous: Option<Value>,
previous_hash: String,
previous_source: Source,
setting: KeyInfo,
},
Reset {
setting: KeyInfo,
},
Confirmed {
key: String,
},
Refused {
reason: ConfigRefusal,
key: String,
message: String,
},
Error {
message: String,
},
}Expand description
What the config activation answers.
Variants§
Setting(KeyInfo)
A setting as it stands.
Set
Set: what was in effect before (a secret’s hash only) and what is
now; confirm_until when it reverts unless confirmed.
Fields
Reset
Back to below the runtime.
Confirmed
The change waiting on key is kept.
Refused
Refused, and why in a word.
Error
Why not.
Trait Implementations§
Source§impl Clone for SettingEvent
impl Clone for SettingEvent
Source§impl Debug for SettingEvent
impl Debug for SettingEvent
Source§impl<'de> Deserialize<'de> for SettingEvent
impl<'de> Deserialize<'de> for SettingEvent
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 FromClientError for SettingEvent
impl FromClientError for SettingEvent
Source§fn from_client_error(e: ClientError) -> Self
fn from_client_error(e: ClientError) -> Self
The event that stands for
error. It is the last item of its stream.Source§impl JsonSchema for SettingEvent
impl JsonSchema for SettingEvent
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 SettingEvent
impl PartialEq for SettingEvent
Source§impl Serialize for SettingEvent
impl Serialize for SettingEvent
impl StructuralPartialEq for SettingEvent
Auto Trait Implementations§
impl Forget for SettingEvent
impl Freeze for SettingEvent
impl Move for SettingEvent
impl RefUnwindSafe for SettingEvent
impl Send for SettingEvent
impl Sync for SettingEvent
impl Unpin for SettingEvent
impl UnsafeUnpin for SettingEvent
impl UnwindSafe for SettingEvent
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