pub struct FieldName(/* private fields */);Expand description
A single dotted path (e.g. "database.url" or "a").
Created for you by Foo::fields().some_field().
Implementations§
Source§impl FieldName
impl FieldName
Sourcepub fn static_lit(lit: &'static str) -> Self
pub fn static_lit(lit: &'static str) -> Self
Build a Field from a &'static str literal with zero allocation.
Sourcepub fn from_string(s: String) -> Self
pub fn from_string(s: String) -> Self
Build a Field from an owned String (one allocation already paid).
Trait Implementations§
impl Eq for FieldName
impl StructuralPartialEq for FieldName
Auto Trait Implementations§
impl Freeze for FieldName
impl RefUnwindSafe for FieldName
impl Send for FieldName
impl Sync for FieldName
impl Unpin for FieldName
impl UnsafeUnpin for FieldName
impl UnwindSafe for FieldName
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