pub struct AppsSecret {
pub created: i64,
pub deleted: Option<bool>,
pub expires_at: Option<i64>,
pub id: String,
pub livemode: bool,
pub name: String,
pub object: String,
pub payload: Option<String>,
pub scope: SecretServiceResourceScope,
}Expand description
Secret Store is an API that allows Stripe Apps developers to securely persist secrets for use by UI Extensions and app backends.
The primary resource in Secret Store is a secret. Other apps can’t view secrets created by an app. Additionally, secrets are scoped to provide further permission control.
All Dashboard users and the app backend share account scoped secrets. Use the account scope for secrets that don’t change per-user, like a third-party API key.
A user scoped secret is accessible by the app backend and one specific Dashboard user. Use the user scope for per-user secrets like per-user OAuth tokens, where different users might have different permissions.
Related guide: Store data between page reloads
Fields§
§created: i64Time at which the object was created. Measured in seconds since the Unix epoch.
deleted: Option<bool>If true, indicates that this secret has been deleted
expires_at: Option<i64>The Unix timestamp for the expiry time of the secret, after which the secret deletes.
id: StringUnique identifier for the object.
livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
name: StringA name for the secret that’s unique within the scope.
object: StringString representing the object’s type. Objects of the same type share the same value.
payload: Option<String>The plaintext secret value to be stored.
scope: SecretServiceResourceScopeTrait Implementations§
Source§impl Clone for AppsSecret
impl Clone for AppsSecret
Source§fn clone(&self) -> AppsSecret
fn clone(&self) -> AppsSecret
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more