pub struct Parameter {
pub name: String,
pub kind: Kind,
pub description: String,
pub sensitive: bool,
pub value: Option<Value>,
pub source: Option<Source>,
pub startup: Option<Value>,
}Expand description
One parameter as the view shows it (§2.3): its declaration, and what the
owner runs with. A sensitive parameter never carries value or
startup.
Fields§
§name: StringIts name.
kind: KindIts kind, with an integer’s bounds and unit.
description: StringOne line for a person.
sensitive: boolWrite-only (§2.15).
value: Option<Value>The running value; absent when sensitive or unknown.
source: Option<Source>Where the running value came from.
startup: Option<Value>What a restart would run with, when it differs from a known running value; never for a sensitive parameter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parameter
impl<'de> Deserialize<'de> for Parameter
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
impl Eq for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Forget for Parameter
impl Freeze for Parameter
impl Move for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameterwhere
RawVecInner: Send,
impl Sync for Parameterwhere
RawVecInner: Sync,
impl Unpin for Parameter
impl UnsafeUnpin for Parameter
impl UnwindSafe for Parameterwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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