Struct starship::configs::cmd_duration::CmdDurationConfig
source · pub struct CmdDurationConfig<'a> {
pub min_time: i64,
pub format: &'a str,
pub style: &'a str,
pub show_milliseconds: bool,
pub disabled: bool,
pub show_notifications: bool,
pub min_time_to_notify: i64,
pub notification_timeout: Option<u32>,
}
Fields§
§min_time: i64
§format: &'a str
§style: &'a str
§show_milliseconds: bool
§disabled: bool
§show_notifications: bool
§min_time_to_notify: i64
§notification_timeout: Option<u32>
Trait Implementations§
source§impl<'a> Clone for CmdDurationConfig<'a>
impl<'a> Clone for CmdDurationConfig<'a>
source§fn clone(&self) -> CmdDurationConfig<'a>
fn clone(&self) -> CmdDurationConfig<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Default for CmdDurationConfig<'a>
impl<'a> Default for CmdDurationConfig<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for CmdDurationConfig<'a>where
CmdDurationConfig<'a>: Default,
impl<'de: 'a, 'a> Deserialize<'de> for CmdDurationConfig<'a>where
CmdDurationConfig<'a>: Default,
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
Auto Trait Implementations§
impl<'a> Freeze for CmdDurationConfig<'a>
impl<'a> RefUnwindSafe for CmdDurationConfig<'a>
impl<'a> Send for CmdDurationConfig<'a>
impl<'a> Sync for CmdDurationConfig<'a>
impl<'a> Unpin for CmdDurationConfig<'a>
impl<'a> UnwindSafe for CmdDurationConfig<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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 moresource§impl<'a, T> ModuleConfig<'a, Error> for Twhere
T: Deserialize<'a> + Default,
impl<'a, T> ModuleConfig<'a, Error> for Twhere
T: Deserialize<'a> + Default,
source§fn from_config<V>(config: V) -> Result<T, Error>where
V: Into<ValueRef<'a>>,
fn from_config<V>(config: V) -> Result<T, Error>where
V: Into<ValueRef<'a>>,
Create ValueDeserializer
wrapper and use it to call Deserialize::deserialize
on it.
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.