pub struct PathTranslations {
pub entries: Vec<PathTranslation>,
}Fields§
§entries: Vec<PathTranslation>Implementations§
Source§impl PathTranslations
impl PathTranslations
pub fn from_config_stanzas( raws: Vec<PathTranslationRaw>, ) -> Result<Self, ConfigError>
pub fn load_external(path: &Path) -> Result<Vec<PathTranslation>, ConfigError>
pub fn merge_external( &mut self, external: Vec<PathTranslation>, ) -> Result<(), ConfigError>
Trait Implementations§
Source§impl Clone for PathTranslations
impl Clone for PathTranslations
Source§fn clone(&self) -> PathTranslations
fn clone(&self) -> PathTranslations
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 PathTranslations
impl Debug for PathTranslations
Source§impl Default for PathTranslations
impl Default for PathTranslations
Source§fn default() -> PathTranslations
fn default() -> PathTranslations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PathTranslations
impl<'de> Deserialize<'de> for PathTranslations
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
impl Eq for PathTranslations
Source§impl PartialEq for PathTranslations
impl PartialEq for PathTranslations
Source§impl Serialize for PathTranslations
impl Serialize for PathTranslations
impl StructuralPartialEq for PathTranslations
Auto Trait Implementations§
impl Freeze for PathTranslations
impl RefUnwindSafe for PathTranslations
impl Send for PathTranslations
impl Sync for PathTranslations
impl Unpin for PathTranslations
impl UnsafeUnpin for PathTranslations
impl UnwindSafe for PathTranslations
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