pub struct CreateSubscriptionBody {
pub currency: Option<CurrencyEnum>,
pub interval: IntervalEnum,
pub plan: String,
pub provision_first_project: String,
pub return_to: Option<String>,
}Expand description
CreateSubscriptionBody : Create Subscription Request Body
Fields§
§currency: Option<CurrencyEnum>usd USD eur Euro
interval: IntervalEnummonthly Monthly yearly Yearly
plan: String§provision_first_project: String§return_to: Option<String>Implementations§
source§impl CreateSubscriptionBody
impl CreateSubscriptionBody
sourcepub fn new(
interval: IntervalEnum,
plan: String,
provision_first_project: String
) -> CreateSubscriptionBody
pub fn new( interval: IntervalEnum, plan: String, provision_first_project: String ) -> CreateSubscriptionBody
Create Subscription Request Body
Trait Implementations§
source§impl Clone for CreateSubscriptionBody
impl Clone for CreateSubscriptionBody
source§fn clone(&self) -> CreateSubscriptionBody
fn clone(&self) -> CreateSubscriptionBody
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CreateSubscriptionBody
impl Debug for CreateSubscriptionBody
source§impl<'de> Deserialize<'de> for CreateSubscriptionBody
impl<'de> Deserialize<'de> for CreateSubscriptionBody
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
source§impl PartialEq<CreateSubscriptionBody> for CreateSubscriptionBody
impl PartialEq<CreateSubscriptionBody> for CreateSubscriptionBody
source§fn eq(&self, other: &CreateSubscriptionBody) -> bool
fn eq(&self, other: &CreateSubscriptionBody) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CreateSubscriptionBody
impl Serialize for CreateSubscriptionBody
impl StructuralPartialEq for CreateSubscriptionBody
Auto Trait Implementations§
impl RefUnwindSafe for CreateSubscriptionBody
impl Send for CreateSubscriptionBody
impl Sync for CreateSubscriptionBody
impl Unpin for CreateSubscriptionBody
impl UnwindSafe for CreateSubscriptionBody
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