pub struct Capability {
pub requested: bool,
pub status: CapabilityStatus,
}Expand description
The current state of a capability for a customer. The status field is always
present. When requested is false, the status will be unrequested.
JSON schema
{
"description": "The current state of a capability for a customer. The `status` field is always\npresent. When `requested` is `false`, the status will be `unrequested`.\n",
"type": "object",
"required": [
"requested",
"status"
],
"properties": {
"requested": {
"description": "Whether the customer has explicitly requested this capability.",
"examples": [
true
],
"type": "boolean"
},
"status": {
"description": "Current status of the capability. When `requested` is `false`, status is `unrequested`.\nWhen `requested` is `true`, status is one of `pending`, `active`, or `inactive`.\n",
"examples": [
"active"
],
"allOf": [
{
"$ref": "#/components/schemas/CapabilityStatus"
}
]
}
}
}Fields§
§requested: boolWhether the customer has explicitly requested this capability.
status: CapabilityStatusCurrent status of the capability. When requested is false, status is unrequested.
When requested is true, status is one of pending, active, or inactive.
Implementations§
Source§impl Capability
impl Capability
pub fn builder() -> Capability
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§impl Debug for Capability
impl Debug for Capability
Source§impl<'de> Deserialize<'de> for Capability
impl<'de> Deserialize<'de> for Capability
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
Source§impl From<&Capability> for Capability
impl From<&Capability> for Capability
Source§fn from(value: &Capability) -> Self
fn from(value: &Capability) -> Self
Converts to this type from the input type.
Source§impl From<Capability> for Capability
impl From<Capability> for Capability
Source§fn from(value: Capability) -> Self
fn from(value: Capability) -> Self
Converts to this type from the input type.
Source§impl Serialize for Capability
impl Serialize for Capability
Source§impl TryFrom<Capability> for Capability
impl TryFrom<Capability> for Capability
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: Capability) -> Result<Self, ConversionError>
fn try_from(value: Capability) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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