pub struct Leaf {
pub key: &'static str,
pub get: for<'a> fn(&'a DatadogConfiguration) -> LeafValue<'a>,
}Expand description
One supported configuration leaf: its dotted key and a borrowing accessor.
Fields§
§key: &'static strThe dotted key, exactly as written in the schema overlay.
get: for<'a> fn(&'a DatadogConfiguration) -> LeafValue<'a>Reads this leaf’s typed value out of a DatadogConfiguration, borrowing where the type
allows it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Leaf
impl RefUnwindSafe for Leaf
impl Send for Leaf
impl Sync for Leaf
impl Unpin for Leaf
impl UnsafeUnpin for Leaf
impl UnwindSafe for Leaf
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