pub struct Tenant {
pub id: TenantId,
pub name: String,
pub api_token: String,
pub plan: String,
pub created_at: DateTime<Utc>,
pub config: Value,
}Expand description
A tenant in the system.
Fields§
§id: TenantIdUnique tenant identifier.
name: StringHuman-readable tenant name.
api_token: StringUnique API token for proxy traffic.
plan: StringSubscription plan (e.g., “free”, “pro”, “enterprise”).
created_at: DateTime<Utc>When the tenant was created.
config: ValueArbitrary tenant-level configuration.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tenant
impl<'de> Deserialize<'de> for Tenant
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 Freeze for Tenant
impl RefUnwindSafe for Tenant
impl Send for Tenant
impl Sync for Tenant
impl Unpin for Tenant
impl UnsafeUnpin for Tenant
impl UnwindSafe for Tenant
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