#[non_exhaustive]pub struct AdaptationModifier {
pub modifier: String,
pub value: String,
/* private fields */
}Expand description
AdaptationModifier a modifier to be used for configuration of the OS adaptation process.
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.modifier: StringOptional. The modifier name.
value: StringOptional. The value of the modifier. The actual value depends on the modifier and can also be empty.
Implementations§
Source§impl AdaptationModifier
impl AdaptationModifier
Sourcepub fn set_modifier<T: Into<String>>(self, v: T) -> Self
pub fn set_modifier<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AdaptationModifier
impl Clone for AdaptationModifier
Source§fn clone(&self) -> AdaptationModifier
fn clone(&self) -> AdaptationModifier
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 AdaptationModifier
impl Debug for AdaptationModifier
Source§impl Default for AdaptationModifier
impl Default for AdaptationModifier
Source§fn default() -> AdaptationModifier
fn default() -> AdaptationModifier
Returns the “default value” for a type. Read more
Source§impl Message for AdaptationModifier
impl Message for AdaptationModifier
Source§impl PartialEq for AdaptationModifier
impl PartialEq for AdaptationModifier
Source§fn eq(&self, other: &AdaptationModifier) -> bool
fn eq(&self, other: &AdaptationModifier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdaptationModifier
Auto Trait Implementations§
impl Freeze for AdaptationModifier
impl RefUnwindSafe for AdaptationModifier
impl Send for AdaptationModifier
impl Sync for AdaptationModifier
impl Unpin for AdaptationModifier
impl UnsafeUnpin for AdaptationModifier
impl UnwindSafe for AdaptationModifier
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