pub struct KeyInfo {Show 15 fields
pub key: String,
pub doc: String,
pub value: Option<Value>,
pub hash: String,
pub set: bool,
pub source: Source,
pub default: Option<Value>,
pub reload: Reload,
pub sensitivity: Sensitivity,
pub scope: Scope,
pub remote: bool,
pub critical: bool,
pub pending: Option<Value>,
pub confirm_until: Option<i64>,
pub schema: Value,
}Expand description
A setting as it stands, as config.list and config.{key}.get show it.
Fields§
§key: String§doc: String§value: Option<Value>The value in effect (None for a secret).
hash: StringThe value in effect, hashed (a secret’s salted).
set: boolSet by anything above the default.
source: Source§default: Option<Value>The default (None for a secret).
reload: Reload§sensitivity: Sensitivity§scope: Scope§remote: bool§critical: bool§pending: Option<Value>A Restart setting’s runtime value, waiting for the next start
(Some(null) for a secret: one is waiting).
confirm_until: Option<i64>A confirmed commit waiting: reverted at this time (unix ms) unless confirmed.
schema: ValueIts type’s JSON Schema.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyInfo
impl<'de> Deserialize<'de> for KeyInfo
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 KeyInfo
impl JsonSchema for KeyInfo
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 moreimpl StructuralPartialEq for KeyInfo
Auto Trait Implementations§
impl Forget for KeyInfo
impl Freeze for KeyInfo
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnsafeUnpin for KeyInfo
impl UnwindSafe for KeyInfo
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