pub struct EntitlementsFeature {
pub active: bool,
pub id: EntitlementsFeatureId,
pub livemode: bool,
pub lookup_key: String,
pub metadata: HashMap<String, String>,
pub name: String,
}Expand description
A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
Fields§
§active: boolInactive features cannot be attached to new products and will not be returned from the features list endpoint.
id: EntitlementsFeatureIdUnique 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.
lookup_key: StringA unique key you provide as your own system identifier. This may be up to 80 characters.
metadata: HashMap<String, String>Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
name: StringThe feature’s name, for your own purpose, not meant to be displayable to the customer.
Trait Implementations§
Source§impl Clone for EntitlementsFeature
impl Clone for EntitlementsFeature
Source§fn clone(&self) -> EntitlementsFeature
fn clone(&self) -> EntitlementsFeature
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more