pub struct UserOptions {
pub log_level: LevelFilter,
pub lint: LintOptions,
}Expand description
User-controlled options for the server.
Fields§
§log_level: LevelFilterThe verbosity level of the server.
lint: LintOptionsThe options for linting.
Trait Implementations§
Source§impl Clone for UserOptions
impl Clone for UserOptions
Source§fn clone(&self) -> UserOptions
fn clone(&self) -> UserOptions
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 UserOptions
impl Debug for UserOptions
Source§impl Default for UserOptions
impl Default for UserOptions
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 UserOptions
impl RefUnwindSafe for UserOptions
impl Send for UserOptions
impl Sync for UserOptions
impl Unpin for UserOptions
impl UnsafeUnpin for UserOptions
impl UnwindSafe for UserOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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