pub struct OptionRecord {
pub name: String,
pub summary: Option<String>,
}Expand description
A single NixOS module option from an options database.
Fields§
§name: StringFully-qualified option name, e.g. "services.nginx.enable".
summary: Option<String>Summary text (description, type, or default), if present in the database.
Trait Implementations§
Source§impl Clone for OptionRecord
impl Clone for OptionRecord
Source§fn clone(&self) -> OptionRecord
fn clone(&self) -> OptionRecord
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 OptionRecord
impl Debug for OptionRecord
impl Eq for OptionRecord
Source§impl PartialEq for OptionRecord
impl PartialEq for OptionRecord
Source§fn eq(&self, other: &OptionRecord) -> bool
fn eq(&self, other: &OptionRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionRecord
Auto Trait Implementations§
impl Freeze for OptionRecord
impl RefUnwindSafe for OptionRecord
impl Send for OptionRecord
impl Sync for OptionRecord
impl Unpin for OptionRecord
impl UnsafeUnpin for OptionRecord
impl UnwindSafe for OptionRecord
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