pub struct TenantRequest<'a> {
pub id: Uuid,
pub name: &'a str,
pub metadata: Value,
pub creator_name: Option<&'a str>,
pub creator_email: Option<&'a str>,
}Expand description
The subset of Tenant used in create requests.
Fields§
§id: UuidThe ID of the tenant.
name: &'a strThe name of the tenant.
metadata: ValueArbitrary metadata to attach to the tenant.
creator_name: Option<&'a str>The name of the person who created the tenant.
creator_email: Option<&'a str>The email of the person who created the tenant.
Trait Implementations§
Source§impl<'a> Clone for TenantRequest<'a>
impl<'a> Clone for TenantRequest<'a>
Source§fn clone(&self) -> TenantRequest<'a>
fn clone(&self) -> TenantRequest<'a>
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<'a> Debug for TenantRequest<'a>
impl<'a> Debug for TenantRequest<'a>
Source§impl<'a> Default for TenantRequest<'a>
impl<'a> Default for TenantRequest<'a>
Source§fn default() -> TenantRequest<'a>
fn default() -> TenantRequest<'a>
Returns the “default value” for a type. Read more
Source§impl<'de: 'a, 'a> Deserialize<'de> for TenantRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TenantRequest<'a>
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<'a> Freeze for TenantRequest<'a>
impl<'a> RefUnwindSafe for TenantRequest<'a>
impl<'a> Send for TenantRequest<'a>
impl<'a> Sync for TenantRequest<'a>
impl<'a> Unpin for TenantRequest<'a>
impl<'a> UnsafeUnpin for TenantRequest<'a>
impl<'a> UnwindSafe for TenantRequest<'a>
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