pub struct Plan {
pub id: String,
pub external_id: Option<String>,
pub name: Option<String>,
pub description: String,
pub created_at: OffsetDateTime,
pub base_plan_id: Option<String>,
pub metadata: BTreeMap<String, String>,
}Expand description
An Orb plan.
Fields§
§id: StringThe Orb-assigned unique identifier for the plan.
external_id: Option<String>An optional user-defined ID for this plan resource, used throughout the system as an alias for this plan.
name: Option<String>A human-readable name for the plan.
description: StringA human-readable description of the plan.
created_at: OffsetDateTimeThe time at which the plan was created.
base_plan_id: Option<String>The parent plan id if the given plan was created by overriding one or more of the parent’s prices.
metadata: BTreeMap<String, String>Arbitrary metadata that is attached to the plan. Cannot be nested, must have string values.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
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
impl Eq for Plan
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnwindSafe for Plan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.