pub struct KeySpec {
pub name: &'static str,
pub domain: Domain,
pub fallback: Fallback,
pub about: &'static str,
}Expand description
One published setting.
Fields§
§name: &'static strThe exact name a caller writes.
domain: DomainThe values this key accepts.
fallback: FallbackWhat applies when nothing was stored.
about: &'static strOne line saying what the key governs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeySpec
impl RefUnwindSafe for KeySpec
impl Send for KeySpec
impl Sync for KeySpec
impl Unpin for KeySpec
impl UnsafeUnpin for KeySpec
impl UnwindSafe for KeySpec
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