#[non_exhaustive]pub enum TenantStatus {
Trial,
Active,
PastDue,
Suspended,
Offboarding,
Deprovisioned,
}Expand description
Lifecycle status of a tenant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trial
In trial period (14 days, Accelerator features).
Active
Active paying customer.
PastDue
Payment failed, in grace period.
Suspended
Administratively suspended.
Offboarding
Tenant requested cancellation, data being archived.
Deprovisioned
Fully deprovisioned, data archived or deleted.
Implementations§
Source§impl TenantStatus
impl TenantStatus
Sourcepub fn is_accessible(&self) -> bool
pub fn is_accessible(&self) -> bool
Whether the tenant can use the platform.
Sourcepub fn is_billable(&self) -> bool
pub fn is_billable(&self) -> bool
Whether the tenant can be billed.
Trait Implementations§
Source§impl Clone for TenantStatus
impl Clone for TenantStatus
Source§fn clone(&self) -> TenantStatus
fn clone(&self) -> TenantStatus
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 Debug for TenantStatus
impl Debug for TenantStatus
Source§impl<'de> Deserialize<'de> for TenantStatus
impl<'de> Deserialize<'de> for TenantStatus
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 TenantStatus
impl PartialEq for TenantStatus
Source§impl Serialize for TenantStatus
impl Serialize for TenantStatus
impl Copy for TenantStatus
impl Eq for TenantStatus
impl StructuralPartialEq for TenantStatus
Auto Trait Implementations§
impl Freeze for TenantStatus
impl RefUnwindSafe for TenantStatus
impl Send for TenantStatus
impl Sync for TenantStatus
impl Unpin for TenantStatus
impl UnsafeUnpin for TenantStatus
impl UnwindSafe for TenantStatus
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