#[non_exhaustive]pub struct ProductProviderCreateResponse {
pub created: bool,
pub confirmation_outdated: bool,
pub plan: ProviderCreatePlan,
pub connector_product_id: Option<String>,
pub prices: Vec<ProviderCreatedPrice>,
pub error: Option<String>,
pub result: Option<ProductProviderSyncResponse>,
pub extra: Map<String, Value>,
}Expand description
What a create at a provider did, or the plan it would carry out.
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.created: booltrue once the product exists at the provider and is tied to the
catalogue product, with every price in prices that has a
connector_price_id.
confirmation_outdated: booltrue when confirmed named another plan than the current one;
nothing was written, and plan is the current one to review.
plan: ProviderCreatePlanThe plan.
connector_product_id: Option<String>The provider’s id for the created product.
prices: Vec<ProviderCreatedPrice>One entry per price.
error: Option<String>Why the create stopped. What the provider already made is reused when the create is confirmed again.
result: Option<ProductProviderSyncResponse>The product compared with its providers after the create.
extra: Map<String, Value>Any additional response fields not modeled above.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProductProviderCreateResponse
impl<'de> Deserialize<'de> for ProductProviderCreateResponse
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 ProductProviderCreateResponse
impl Freeze for ProductProviderCreateResponse
impl Move for ProductProviderCreateResponse
impl RefUnwindSafe for ProductProviderCreateResponse
impl Send for ProductProviderCreateResponse
impl Sync for ProductProviderCreateResponse
impl Unpin for ProductProviderCreateResponse
impl UnsafeUnpin for ProductProviderCreateResponse
impl UnwindSafe for ProductProviderCreateResponse
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