pub struct MembershipTierData {Show 18 fields
pub id: u32,
pub name: String,
pub description: String,
pub is_test: bool,
pub period_type: i32,
pub period_value: u32,
pub price_stripe_usd_cents: u32,
pub any_names_count_included: u32,
pub any_name_min_length: u32,
pub features: Vec<String>,
pub color_str: String,
pub stripe_product_id: String,
pub stripe_manage_url: String,
pub ios_product_id: String,
pub ios_manage_url: String,
pub android_product_id: String,
pub android_manage_url: String,
pub offer: String,
}Fields§
§id: u32this is a unique Payment Node ID of the tier WARNING: tiers can be sorted differently, not according to their IDs!
name: Stringlocalazied name of the tier
description: Stringjust a short technical description
is_test: boolis this tier for testing and debugging only?
period_type: i32how long is the period of the subscription
period_value: u32i.e. “5 days” or “3 years”
price_stripe_usd_cents: u32this one is a price we use ONLY on Stripe platform
any_names_count_included: u32number of ANY NS names that this tier includes also in the “features” list (see below)
any_name_min_length: u32somename.any - is of len 8
features: Vec<String>localized strings for the features
color_str: Stringgreen, blue, red, purple, custom
stripe_product_id: StringStripe platform-specific data:
stripe_manage_url: String§ios_product_id: StringiOS platform-specific data:
ios_manage_url: String§android_product_id: StringAndroid platform-specific data:
android_manage_url: String§offer: String“limited offer” or somehing like that
Implementations§
Source§impl MembershipTierData
impl MembershipTierData
Sourcepub fn period_type(&self) -> PeriodType
pub fn period_type(&self) -> PeriodType
Returns the enum value of period_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_period_type(&mut self, value: PeriodType)
pub fn set_period_type(&mut self, value: PeriodType)
Sets period_type to the provided enum value.
Trait Implementations§
Source§impl Clone for MembershipTierData
impl Clone for MembershipTierData
Source§fn clone(&self) -> MembershipTierData
fn clone(&self) -> MembershipTierData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MembershipTierData
impl Debug for MembershipTierData
Source§impl Default for MembershipTierData
impl Default for MembershipTierData
Source§impl Hash for MembershipTierData
impl Hash for MembershipTierData
Source§impl Message for MembershipTierData
impl Message for MembershipTierData
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for MembershipTierData
impl PartialEq for MembershipTierData
impl Eq for MembershipTierData
impl StructuralPartialEq for MembershipTierData
Auto Trait Implementations§
impl Freeze for MembershipTierData
impl RefUnwindSafe for MembershipTierData
impl Send for MembershipTierData
impl Sync for MembershipTierData
impl Unpin for MembershipTierData
impl UnsafeUnpin for MembershipTierData
impl UnwindSafe for MembershipTierData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request