Struct stripe::generated::core::ephemeral_key::EphemeralKey
source · pub struct EphemeralKey {
pub id: EphemeralKeyId,
pub created: Timestamp,
pub expires: Timestamp,
pub livemode: bool,
pub secret: Option<String>,
}Expand description
The resource representing a Stripe “EphemeralKey”.
Fields§
§id: EphemeralKeyIdUnique identifier for the object.
created: TimestampTime at which the object was created.
Measured in seconds since the Unix epoch.
expires: TimestampTime at which the key will expire.
Measured in seconds since the Unix epoch.
livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
secret: Option<String>The key’s secret.
You can use this value to make authorized requests to the Stripe API.
Implementations§
source§impl EphemeralKey
impl EphemeralKey
sourcepub fn create(
client: &Client,
params: CreateEphemeralKey<'_>
) -> Response<EphemeralKey>
pub fn create( client: &Client, params: CreateEphemeralKey<'_> ) -> Response<EphemeralKey>
Creates a short-lived API key for a given resource.
sourcepub fn delete(
client: &Client,
id: &EphemeralKeyId
) -> Response<Deleted<EphemeralKeyId>>
pub fn delete( client: &Client, id: &EphemeralKeyId ) -> Response<Deleted<EphemeralKeyId>>
Invalidates a short-lived API key for a given resource.
Trait Implementations§
source§impl Clone for EphemeralKey
impl Clone for EphemeralKey
source§fn clone(&self) -> EphemeralKey
fn clone(&self) -> EphemeralKey
Returns a copy 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 EphemeralKey
impl Debug for EphemeralKey
source§impl Default for EphemeralKey
impl Default for EphemeralKey
source§fn default() -> EphemeralKey
fn default() -> EphemeralKey
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EphemeralKey
impl<'de> Deserialize<'de> for EphemeralKey
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