pub struct TenantOwnership {
pub id: Uuid,
pub name: String,
pub since: DateTime<Local>,
}Expand description
This is a re-exportation from the myc core to allow users to import both from myc-http-tools instead of the myc-core.
Fields§
§id: UuidThe tenant ID that the profile has administration privileges
name: StringThe tenant name
since: DateTime<Local>The date and time the tenant was granted to the profile
Trait Implementations§
Source§impl Clone for TenantOwnership
impl Clone for TenantOwnership
Source§fn clone(&self) -> TenantOwnership
fn clone(&self) -> TenantOwnership
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 TenantOwnership
impl Debug for TenantOwnership
Source§impl<'de> Deserialize<'de> for TenantOwnership
impl<'de> Deserialize<'de> for TenantOwnership
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantOwnership, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantOwnership, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for TenantOwnership
impl FromStr for TenantOwnership
Source§impl PartialEq for TenantOwnership
impl PartialEq for TenantOwnership
Source§impl Serialize for TenantOwnership
impl Serialize for TenantOwnership
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<'__r> ToResponse<'__r> for TenantOwnership
impl<'__r> ToResponse<'__r> for TenantOwnership
Source§impl ToSchema for TenantOwnership
impl ToSchema for TenantOwnership
Source§impl ToString for TenantOwnership
impl ToString for TenantOwnership
impl Eq for TenantOwnership
impl StructuralPartialEq for TenantOwnership
Auto Trait Implementations§
impl Freeze for TenantOwnership
impl RefUnwindSafe for TenantOwnership
impl Send for TenantOwnership
impl Sync for TenantOwnership
impl Unpin for TenantOwnership
impl UnwindSafe for TenantOwnership
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.