pub struct OperationCapability {
pub name: String,
pub summary: String,
pub availability: &'static str,
pub requires: Vec<&'static str>,
}Expand description
One operation’s capability.
Fields§
§name: String§summary: String§availability: &'static strOne word, not two booleans.
Every operation this build understands is performable, so this is available
for all of them; it is a word rather than a boolean so a future operation that
is understood but not yet performable can report supported_not_applicable
without a client having to learn a second field.
requires: Vec<&'static str>What the request must also carry, besides a selection: target, kind, or
nothing. A list rather than two bools, so adding a requirement is a new entry
rather than a new field every client has to learn about.
Trait Implementations§
Source§impl Clone for OperationCapability
impl Clone for OperationCapability
Source§impl Debug for OperationCapability
impl Debug for OperationCapability
impl Eq for OperationCapability
Source§impl PartialEq for OperationCapability
impl PartialEq for OperationCapability
Source§impl Serialize for OperationCapability
impl Serialize for OperationCapability
impl StructuralPartialEq for OperationCapability
Auto Trait Implementations§
impl Freeze for OperationCapability
impl RefUnwindSafe for OperationCapability
impl Send for OperationCapability
impl Sync for OperationCapability
impl Unpin for OperationCapability
impl UnsafeUnpin for OperationCapability
impl UnwindSafe for OperationCapability
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,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more