pub struct FixedSubscriptionCreateRequest {
pub name: String,
pub plan_id: i32,
pub payment_method: Option<String>,
pub payment_method_id: Option<i32>,
pub command_type: Option<String>,
pub extra: Value,
}
Expand description
Essentials subscription create request
Fields§
§name: String
New Essentials subscription name.
plan_id: i32
An Essentials plan ID. The plan describes the dataset size, cloud provider and region, and available database configuration options. Use GET /fixed/plans to get a list of available options.
payment_method: Option<String>
Optional. The payment method for the subscription. If set to ‘credit-card’, ‘paymentMethodId’ must be defined. Default: ‘credit-card’
payment_method_id: Option<i32>
Optional. A valid payment method ID for this account. Use GET /payment-methods to get a list of all payment methods for your account. This value is optional if ‘paymentMethod’ is ‘marketplace’, but required for all other account types.
command_type: Option<String>
§extra: Value
Additional fields from the API
Trait Implementations§
Source§impl Clone for FixedSubscriptionCreateRequest
impl Clone for FixedSubscriptionCreateRequest
Source§fn clone(&self) -> FixedSubscriptionCreateRequest
fn clone(&self) -> FixedSubscriptionCreateRequest
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<'de> Deserialize<'de> for FixedSubscriptionCreateRequest
impl<'de> Deserialize<'de> for FixedSubscriptionCreateRequest
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
Auto Trait Implementations§
impl Freeze for FixedSubscriptionCreateRequest
impl RefUnwindSafe for FixedSubscriptionCreateRequest
impl Send for FixedSubscriptionCreateRequest
impl Sync for FixedSubscriptionCreateRequest
impl Unpin for FixedSubscriptionCreateRequest
impl UnwindSafe for FixedSubscriptionCreateRequest
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