pub struct Capability {
pub account: Value,
pub future_requirements: Option<AccountCapabilityFutureRequirements>,
pub id: String,
pub object: String,
pub requested: bool,
pub requested_at: Option<i64>,
pub requirements: Option<AccountCapabilityRequirements>,
pub status: String,
}
Expand description
This is an object representing a capability for a Stripe account.
Related guide: Account capabilities
Fields§
§account: Value
The account for which the capability enables functionality.
future_requirements: Option<AccountCapabilityFutureRequirements>
§id: String
The identifier for the capability.
object: String
String representing the object’s type. Objects of the same type share the same value.
requested: bool
Whether the capability has been requested.
requested_at: Option<i64>
Time at which the capability was requested. Measured in seconds since the Unix epoch.
requirements: Option<AccountCapabilityRequirements>
§status: String
The status of the capability. Can be active
, inactive
, pending
, or unrequested
.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
Returns a duplicate of the value. Read more
1.0.0 · 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 Capability
impl Debug for Capability
Source§impl Default for Capability
impl Default for Capability
Source§fn default() -> Capability
fn default() -> Capability
Returns the “default value” for a type. Read more
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 Display for Capability
impl Display for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin 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