pub struct CreateSubscriptionBody {
pub currency: Option<CurrencyEnum>,
pub interval: IntervalEnum,
pub plan: String,
pub provision_first_project: String,
pub return_to: Option<String>,
}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
pub fn new( interval: IntervalEnum, plan: String, provision_first_project: String, ) -> CreateSubscriptionBody
Trait Implementations§
Source§impl Clone for CreateSubscriptionBody
impl Clone for CreateSubscriptionBody
Source§fn clone(&self) -> CreateSubscriptionBody
fn clone(&self) -> CreateSubscriptionBody
Returns a duplicate 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 Default for CreateSubscriptionBody
impl Default for CreateSubscriptionBody
Source§fn default() -> CreateSubscriptionBody
fn default() -> CreateSubscriptionBody
Returns the “default value” for a type. Read more
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 for CreateSubscriptionBody
impl PartialEq for CreateSubscriptionBody
Source§impl Serialize for CreateSubscriptionBody
impl Serialize for CreateSubscriptionBody
impl StructuralPartialEq for CreateSubscriptionBody
Auto Trait Implementations§
impl Freeze for CreateSubscriptionBody
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