pub struct SpecSource {
pub kind: &'static str,
pub name: Option<&'static str>,
pub doc_hint: Option<&'static str>,
pub set_hint: Option<&'static str>,
}Expand description
A custom source declaration at the top of a spec’s config block.
Fields§
§kind: &'static str§name: Option<&'static str>§doc_hint: Option<&'static str>§set_hint: Option<&'static str>Trait Implementations§
Source§impl Clone for SpecSource
impl Clone for SpecSource
Source§fn clone(&self) -> SpecSource
fn clone(&self) -> SpecSource
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 moreimpl Copy for SpecSource
Auto Trait Implementations§
impl Freeze for SpecSource
impl RefUnwindSafe for SpecSource
impl Send for SpecSource
impl Sync for SpecSource
impl Unpin for SpecSource
impl UnsafeUnpin for SpecSource
impl UnwindSafe for SpecSource
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