pub struct SessionSettingsOverrides { /* private fields */ }Expand description
the governing rules: a flat settings patch for one session — dotted key
paths in file spelling verbatim (the settings/* key-path vocabulary)
mapped to their new absolute scalar values. null clears the member to
absent, exactly as a settings/writeValue edit does.
Credentials never travel here: a secret-shaped key (by key class, with a fail-closed default for unrecognized secret-shaped spellings) fails the decode at the wire boundary, before the value can reach any settings composition.
Implementations§
Source§impl SessionSettingsOverrides
impl SessionSettingsOverrides
Sourcepub fn new(
values: BTreeMap<String, SessionSettingsOverrideValue>,
) -> Result<Self, &'static str>
pub fn new( values: BTreeMap<String, SessionSettingsOverrideValue>, ) -> Result<Self, &'static str>
The validated constructor: every key must pass the same fail-closed guard the wire decoder runs, so no caller can build (or mutate into) a patch carrying credential material.
Sourcepub fn get(&self, key: &str) -> Option<&SessionSettingsOverrideValue>
pub fn get(&self, key: &str) -> Option<&SessionSettingsOverrideValue>
One entry by dotted key path, if present.
Sourcepub fn values(&self) -> &BTreeMap<String, SessionSettingsOverrideValue>
pub fn values(&self) -> &BTreeMap<String, SessionSettingsOverrideValue>
The patch entries, read-only.
Trait Implementations§
Source§impl Clone for SessionSettingsOverrides
impl Clone for SessionSettingsOverrides
Source§impl Debug for SessionSettingsOverrides
impl Debug for SessionSettingsOverrides
Source§impl Default for SessionSettingsOverrides
impl Default for SessionSettingsOverrides
Source§impl<'de> Deserialize<'de> for SessionSettingsOverrides
impl<'de> Deserialize<'de> for SessionSettingsOverrides
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 SessionSettingsOverrides
Source§impl PartialEq for SessionSettingsOverrides
impl PartialEq for SessionSettingsOverrides
Source§impl Serialize for SessionSettingsOverrides
impl Serialize for SessionSettingsOverrides
impl StructuralPartialEq for SessionSettingsOverrides
Auto Trait Implementations§
impl Forget for SessionSettingsOverrides
impl Freeze for SessionSettingsOverrides
impl Move for SessionSettingsOverrides
impl RefUnwindSafe for SessionSettingsOverrides
impl Send for SessionSettingsOverrides
impl Sync for SessionSettingsOverrides
impl Unpin for SessionSettingsOverrides
impl UnsafeUnpin for SessionSettingsOverrides
impl UnwindSafe for SessionSettingsOverrides
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