pub struct CustomPlanInput {
pub name: String,
pub description: Option<String>,
pub program: Option<String>,
pub base_plan: SpecPackageIncludedInPlan,
pub price_amount_cents: i64,
pub price_currency: Option<String>,
pub stripe_price_id: Option<String>,
pub quotas: Option<TenantQuotas>,
pub llm: Option<PlanLLMLimits>,
pub visibility: Option<CustomPlanVisibility>,
pub active: Option<bool>,
}Expand description
CustomPlanInput model.
Fields§
§name: String§description: Option<String>§program: Option<String>§base_plan: SpecPackageIncludedInPlan§price_amount_cents: i64§price_currency: Option<String>Server default: "usd".
stripe_price_id: Option<String>§quotas: Option<TenantQuotas>§llm: Option<PlanLLMLimits>§visibility: Option<CustomPlanVisibility>Omitting this on an update HIDES a previously public plan.
Server default: "hidden".
active: Option<bool>Omitting this on an update REACTIVATES a deactivated plan. Send it explicitly on every write.
Server default: true.
Trait Implementations§
Source§impl Clone for CustomPlanInput
impl Clone for CustomPlanInput
Source§fn clone(&self) -> CustomPlanInput
fn clone(&self) -> CustomPlanInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CustomPlanInput
impl Debug for CustomPlanInput
Source§impl Default for CustomPlanInput
impl Default for CustomPlanInput
Source§fn default() -> CustomPlanInput
fn default() -> CustomPlanInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomPlanInput
impl<'de> Deserialize<'de> for CustomPlanInput
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 CustomPlanInput
impl PartialEq for CustomPlanInput
Source§impl Serialize for CustomPlanInput
impl Serialize for CustomPlanInput
impl StructuralPartialEq for CustomPlanInput
Auto Trait Implementations§
impl Freeze for CustomPlanInput
impl RefUnwindSafe for CustomPlanInput
impl Send for CustomPlanInput
impl Sync for CustomPlanInput
impl Unpin for CustomPlanInput
impl UnsafeUnpin for CustomPlanInput
impl UnwindSafe for CustomPlanInput
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