#[non_exhaustive]pub struct Setting {
pub source: Source,
pub unset_source: Option<Source>,
pub value: Option<Value>,
}Expand description
One streamed pb.ConfigSetting, without its key (record.md §5.1).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: SourceThe setting’s source.
unset_source: Option<Source>The source an unset cleared, if any.
value: Option<Value>The protojson value, parsed; None when the proto field is unset.
Trait Implementations§
impl StructuralPartialEq for Setting
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnsafeUnpin for Setting
impl UnwindSafe for Setting
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