pub struct HostScheme {
pub name: String,
pub syntax: String,
}Expand description
A scheme a host defines for itself, declared only so help and validation know about it.
The reading is the host’s own — SourceSet::parse answers
ValueSource::Host and leaves the rest to it. afhttp’s
container:NAME, which reads a token out of a container it manages, is one:
nothing about it belongs in this crate, but everything about documenting
it does.
CliSpec::build requires a lowercase
name, rejects built-in/reserved names and duplicates, and requires
syntax to begin with name: plus a value placeholder.
Fields§
§name: String§syntax: StringTrait Implementations§
Source§impl Clone for HostScheme
impl Clone for HostScheme
Source§fn clone(&self) -> HostScheme
fn clone(&self) -> HostScheme
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 HostScheme
impl Debug for HostScheme
Source§impl<'de> Deserialize<'de> for HostScheme
impl<'de> Deserialize<'de> for HostScheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HostScheme
Source§impl PartialEq for HostScheme
impl PartialEq for HostScheme
Source§impl Serialize for HostScheme
impl Serialize for HostScheme
impl StructuralPartialEq for HostScheme
Auto Trait Implementations§
impl Freeze for HostScheme
impl RefUnwindSafe for HostScheme
impl Send for HostScheme
impl Sync for HostScheme
impl Unpin for HostScheme
impl UnsafeUnpin for HostScheme
impl UnwindSafe for HostScheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.