pub struct FirstPartyVerb {
pub verb: &'static str,
pub binary: &'static str,
pub package: &'static str,
pub argv: &'static [&'static str],
pub about: &'static str,
}Expand description
A verb the dispatcher knows by name, whether or not its binary is installed.
didbot <verb> … runs <binary> <argv…> …: the binary found on PATH,
then FirstPartyVerb::argv, then what followed the verb on the
command line. A binary that is not installed is named with the crate
that ships it, so the answer is “install this” rather than “unknown
command”.
Fields§
§verb: &'static strWhat the person types after didbot.
binary: &'static strThe binary that answers it.
package: &'static strThe crate cargo install takes to get the binary.
argv: &'static [&'static str]What precedes the caller’s arguments when the binary is run.
about: &'static strOne line for didbot --help.
Implementations§
Trait Implementations§
Source§impl Clone for FirstPartyVerb
impl Clone for FirstPartyVerb
Source§fn clone(&self) -> FirstPartyVerb
fn clone(&self) -> FirstPartyVerb
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 FirstPartyVerb
impl Debug for FirstPartyVerb
Source§impl PartialEq for FirstPartyVerb
impl PartialEq for FirstPartyVerb
Source§fn eq(&self, other: &FirstPartyVerb) -> bool
fn eq(&self, other: &FirstPartyVerb) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FirstPartyVerb
impl Eq for FirstPartyVerb
impl StructuralPartialEq for FirstPartyVerb
Auto Trait Implementations§
impl Freeze for FirstPartyVerb
impl RefUnwindSafe for FirstPartyVerb
impl Send for FirstPartyVerb
impl Sync for FirstPartyVerb
impl Unpin for FirstPartyVerb
impl UnsafeUnpin for FirstPartyVerb
impl UnwindSafe for FirstPartyVerb
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.