pub struct AccountCapability {
pub name: String,
pub backend: Option<String>,
pub level: CapabilityLevel,
pub detail: Option<String>,
}Available on crate feature
terminal only.Expand description
How the account serves one unified capability.
Fields§
§name: StringThe capability, <noun>.<verb> and its refinements
(message.move, event.search.body).
backend: Option<String>The backend it resolves to, null when the account configures none
that --backend allows.
level: CapabilityLevelHow well the backend serves it.
detail: Option<String>What the level leaves out, null for a full one.
Trait Implementations§
Source§impl Clone for AccountCapability
impl Clone for AccountCapability
Source§impl Debug for AccountCapability
impl Debug for AccountCapability
Source§impl JsonSchema for AccountCapability
impl JsonSchema for AccountCapability
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for AccountCapability
impl Freeze for AccountCapability
impl Move for AccountCapability
impl RefUnwindSafe for AccountCapability
impl Send for AccountCapability
impl Sync for AccountCapability
impl Unpin for AccountCapability
impl UnsafeUnpin for AccountCapability
impl UnwindSafe for AccountCapability
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