Struct stripe::EphemeralKey [−][src]
pub struct EphemeralKey {
pub id: EphemeralKeyId,
pub created: Timestamp,
pub expires: Timestamp,
pub livemode: bool,
pub secret: Option<Box<String>>,
}
Expand description
The resource representing a Stripe “EphemeralKey”.
Fields
id: EphemeralKeyId
Unique identifier for the object.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
expires: Timestamp
Time at which the key will expire.
Measured in seconds since the Unix epoch.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
secret: Option<Box<String>>
The key’s secret.
You can use this value to make authorized requests to the Stripe API.
Implementations
Creates a short-lived API key for a given resource.
Invalidates a short-lived API key for a given resource.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for EphemeralKey
impl Send for EphemeralKey
impl Sync for EphemeralKey
impl Unpin for EphemeralKey
impl UnwindSafe for EphemeralKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more