#[non_exhaustive]pub struct ProviderCreatePlan {
pub fingerprint: String,
pub connector: String,
pub merchant_connector_id: String,
pub test_mode: bool,
pub name: String,
pub description: Option<String>,
pub image_url: Option<String>,
pub prices: Vec<ProviderCreatePrice>,
pub unsupported_prices: Vec<ProviderUnsupportedPrice>,
pub skipped_price_ids: Vec<String>,
pub extra: Map<String, Value>,
}Expand description
What a create writes at the provider.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fingerprint: StringIdentifies this exact plan; a create is confirmed with it.
connector: StringThe connector, e.g. "stripe".
merchant_connector_id: StringThe connected account.
test_mode: boolThe environment the product is created in: true for the account’s
sandbox.
name: StringThe product’s name.
description: Option<String>The product’s description.
image_url: Option<String>The product’s image.
prices: Vec<ProviderCreatePrice>The prices to create.
unsupported_prices: Vec<ProviderUnsupportedPrice>Chosen prices the provider cannot hold; they are not created.
skipped_price_ids: Vec<String>Catalogue prices not created because they are archived.
extra: Map<String, Value>Any additional response fields not modeled above.
Trait Implementations§
Source§impl Clone for ProviderCreatePlan
impl Clone for ProviderCreatePlan
Source§impl Debug for ProviderCreatePlan
impl Debug for ProviderCreatePlan
Source§impl<'de> Deserialize<'de> for ProviderCreatePlan
impl<'de> Deserialize<'de> for ProviderCreatePlan
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 Forget for ProviderCreatePlan
impl Freeze for ProviderCreatePlan
impl Move for ProviderCreatePlan
impl RefUnwindSafe for ProviderCreatePlan
impl Send for ProviderCreatePlan
impl Sync for ProviderCreatePlan
impl Unpin for ProviderCreatePlan
impl UnsafeUnpin for ProviderCreatePlan
impl UnwindSafe for ProviderCreatePlan
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