#[non_exhaustive]pub struct SessionLoadWarning {
pub code: String,
pub message: String,
pub keys: Vec<String>,
pub items: Vec<SessionLoadWarningItem>,
}Expand description
One session/start or session/resume result warning. Experimental.
The command succeeded; the warning names what the host did not apply.
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.code: StringMachine code. setting_ignored: this host composes no
config.settingsOverrides, so the named keys were ignored.
selection_unavailable: the session’s selection names items it
cannot have; the session started without them (items).
message: StringHuman-readable text.
keys: Vec<String>The config.settingsOverrides keys the warning names, as sent, in
ascending string order.
items: Vec<SessionLoadWarningItem>For selection_unavailable: each selected item with the reason it is
unavailable.
Trait Implementations§
Source§impl Clone for SessionLoadWarning
impl Clone for SessionLoadWarning
Source§impl Debug for SessionLoadWarning
impl Debug for SessionLoadWarning
Source§impl<'de> Deserialize<'de> for SessionLoadWarning
impl<'de> Deserialize<'de> for SessionLoadWarning
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 SessionLoadWarning
Source§impl PartialEq for SessionLoadWarning
impl PartialEq for SessionLoadWarning
Source§impl Serialize for SessionLoadWarning
impl Serialize for SessionLoadWarning
impl StructuralPartialEq for SessionLoadWarning
Auto Trait Implementations§
impl Forget for SessionLoadWarning
impl Freeze for SessionLoadWarning
impl Move for SessionLoadWarning
impl RefUnwindSafe for SessionLoadWarning
impl Send for SessionLoadWarning
impl Sync for SessionLoadWarning
impl Unpin for SessionLoadWarning
impl UnsafeUnpin for SessionLoadWarning
impl UnwindSafe for SessionLoadWarning
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