pub struct UserOptionsPatch {
pub log_level: Option<LevelFilter>,
pub lint: LintOptionsPatch,
}Fields§
§log_level: Option<LevelFilter>§lint: LintOptionsPatchTrait Implementations§
Source§impl Add for UserOptionsPatch
impl Add for UserOptionsPatch
Source§impl Debug for UserOptionsPatch
impl Debug for UserOptionsPatch
Source§impl Default for UserOptionsPatch
impl Default for UserOptionsPatch
Source§fn default() -> UserOptionsPatch
fn default() -> UserOptionsPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserOptionsPatch
impl<'de> Deserialize<'de> for UserOptionsPatch
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
Source§impl Patch<UserOptionsPatch> for UserOptions
impl Patch<UserOptionsPatch> for UserOptions
Source§fn apply(&mut self, patch: UserOptionsPatch)
fn apply(&mut self, patch: UserOptionsPatch)
Apply a patch
Source§fn into_patch(self) -> UserOptionsPatch
fn into_patch(self) -> UserOptionsPatch
Returns a patch that when applied turns any struct of the same type into
SelfSource§fn into_patch_by_diff(self, previous_struct: Self) -> UserOptionsPatch
fn into_patch_by_diff(self, previous_struct: Self) -> UserOptionsPatch
Returns a patch that when applied turns
previous_struct into SelfSource§fn new_empty_patch() -> UserOptionsPatch
fn new_empty_patch() -> UserOptionsPatch
Get an empty patch instance
Source§impl Shl<UserOptionsPatch> for UserOptions
impl Shl<UserOptionsPatch> for UserOptions
Source§type Output = UserOptions
type Output = UserOptions
The resulting type after applying the
<< operator.Source§fn shl(self, rhs: UserOptionsPatch) -> Self
fn shl(self, rhs: UserOptionsPatch) -> Self
Performs the
<< operation. Read moreAuto Trait Implementations§
impl Freeze for UserOptionsPatch
impl RefUnwindSafe for UserOptionsPatch
impl Send for UserOptionsPatch
impl Sync for UserOptionsPatch
impl Unpin for UserOptionsPatch
impl UnsafeUnpin for UserOptionsPatch
impl UnwindSafe for UserOptionsPatch
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more