pub struct SessionOptionSelection {
pub model: String,
pub values: BTreeMap<String, SessionOptionValue>,
}Fields§
§model: String§values: BTreeMap<String, SessionOptionValue>Implementations§
Source§impl SessionOptionSelection
impl SessionOptionSelection
pub fn new(model: impl Into<String>) -> Self
pub fn with_value( self, id: impl Into<String>, value: impl Into<SessionOptionValue>, ) -> Self
pub fn validate(&self) -> Result<(), SessionOptionValidationError>
Trait Implementations§
Source§impl Clone for SessionOptionSelection
impl Clone for SessionOptionSelection
Source§fn clone(&self) -> SessionOptionSelection
fn clone(&self) -> SessionOptionSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionOptionSelection
impl Debug for SessionOptionSelection
Source§impl<'de> Deserialize<'de> for SessionOptionSelection
impl<'de> Deserialize<'de> for SessionOptionSelection
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 SessionOptionSelection
Source§impl PartialEq for SessionOptionSelection
impl PartialEq for SessionOptionSelection
Source§impl Serialize for SessionOptionSelection
impl Serialize for SessionOptionSelection
impl StructuralPartialEq for SessionOptionSelection
Auto Trait Implementations§
impl Freeze for SessionOptionSelection
impl RefUnwindSafe for SessionOptionSelection
impl Send for SessionOptionSelection
impl Sync for SessionOptionSelection
impl Unpin for SessionOptionSelection
impl UnsafeUnpin for SessionOptionSelection
impl UnwindSafe for SessionOptionSelection
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