pub struct ConfigLocation {
pub file_path: PathBuf,
pub line: Option<usize>,
pub column: Option<usize>,
pub key_path: Option<String>,
}Expand description
Location within a configuration file.
Fields§
§file_path: PathBufPath to the config file.
line: Option<usize>Line number (1-indexed).
column: Option<usize>Column number (1-indexed).
key_path: Option<String>Key path within the config (e.g., “workers.0.host”).
Implementations§
Trait Implementations§
Source§impl Clone for ConfigLocation
impl Clone for ConfigLocation
Source§fn clone(&self) -> ConfigLocation
fn clone(&self) -> ConfigLocation
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 ConfigLocation
impl Debug for ConfigLocation
Source§impl<'de> Deserialize<'de> for ConfigLocation
impl<'de> Deserialize<'de> for ConfigLocation
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 Freeze for ConfigLocation
impl RefUnwindSafe for ConfigLocation
impl Send for ConfigLocation
impl Sync for ConfigLocation
impl Unpin for ConfigLocation
impl UnsafeUnpin for ConfigLocation
impl UnwindSafe for ConfigLocation
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