pub struct Tier {Show 13 fields
pub id: String,
pub name: String,
pub slug: String,
pub active: bool,
pub tier_type: Option<String>,
pub welcome_page_url: Option<String>,
pub description: Option<String>,
pub benefits: Vec<String>,
pub monthly_price: Option<u64>,
pub yearly_price: Option<u64>,
pub currency: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}Expand description
A Ghost membership tier (formerly “product”).
Fields§
§id: StringGhost object ID.
name: StringDisplay name.
slug: StringURL slug.
active: boolWhether the tier is active.
tier_type: Option<String>Tier type: "free" or "paid".
welcome_page_url: Option<String>Welcome page URL shown after subscription.
description: Option<String>Short description of the tier.
benefits: Vec<String>List of benefit strings shown on the pricing page.
monthly_price: Option<u64>Monthly price in the smallest currency unit (e.g. cents).
yearly_price: Option<u64>Yearly price in the smallest currency unit.
currency: Option<String>ISO 4217 currency code, e.g. "usd".
created_at: Option<String>ISO 8601 creation timestamp.
updated_at: Option<String>ISO 8601 last-updated timestamp.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tier
impl<'de> Deserialize<'de> for Tier
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
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnsafeUnpin for Tier
impl UnwindSafe for Tier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more