pub struct AppsSecret {
pub created: Timestamp,
pub deleted: Option<bool>,
pub expires_at: Option<Timestamp>,
pub id: AppsSecretId,
pub livemode: bool,
pub name: 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: Timestamp
Time 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<Timestamp>
The Unix timestamp for the expiry time of the secret, after which the secret deletes.
id: AppsSecretId
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
name: String
A name for the secret that’s unique within the scope.
payload: Option<String>
The plaintext secret value to be stored.
scope: SecretServiceResourceScope
Trait 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