Struct starship::configs::directory::DirectoryConfig
source · pub struct DirectoryConfig<'a> {Show 16 fields
pub truncation_length: i64,
pub truncate_to_repo: bool,
pub substitutions: IndexMap<String, &'a str>,
pub fish_style_pwd_dir_length: i64,
pub use_logical_path: bool,
pub format: &'a str,
pub repo_root_format: &'a str,
pub style: &'a str,
pub repo_root_style: Option<&'a str>,
pub before_repo_root_style: Option<&'a str>,
pub disabled: bool,
pub read_only: &'a str,
pub read_only_style: &'a str,
pub truncation_symbol: &'a str,
pub home_symbol: &'a str,
pub use_os_path_sep: bool,
}
Fields§
§truncation_length: i64
§truncate_to_repo: bool
§substitutions: IndexMap<String, &'a str>
§fish_style_pwd_dir_length: i64
§use_logical_path: bool
§format: &'a str
§repo_root_format: &'a str
§style: &'a str
§repo_root_style: Option<&'a str>
§before_repo_root_style: Option<&'a str>
§disabled: bool
§read_only: &'a str
§read_only_style: &'a str
§truncation_symbol: &'a str
§home_symbol: &'a str
§use_os_path_sep: bool
Trait Implementations§
source§impl<'a> Clone for DirectoryConfig<'a>
impl<'a> Clone for DirectoryConfig<'a>
source§fn clone(&self) -> DirectoryConfig<'a>
fn clone(&self) -> DirectoryConfig<'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 DirectoryConfig<'a>
impl<'a> Default for DirectoryConfig<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for DirectoryConfig<'a>where
DirectoryConfig<'a>: Default,
impl<'de: 'a, 'a> Deserialize<'de> for DirectoryConfig<'a>where
DirectoryConfig<'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 DirectoryConfig<'a>
impl<'a> RefUnwindSafe for DirectoryConfig<'a>
impl<'a> Send for DirectoryConfig<'a>
impl<'a> Sync for DirectoryConfig<'a>
impl<'a> Unpin for DirectoryConfig<'a>
impl<'a> UnwindSafe for DirectoryConfig<'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.