pub struct Owner {
pub id: Uuid,
pub email: String,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub username: Option<String>,
pub is_principal: bool,
}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: Uuid§email: StringThe owner email
The email of the user that administrate the profile. Email denotes the central part of the profile management. Email should be used to collect licensed IDs and perform guest operations. Thus, it should be unique in the Mycelium platform.
first_name: Option<String>The owner first name
last_name: Option<String>The owner last name
username: Option<String>The owner username
is_principal: boolIf the owner is the principal account owner
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Owner
impl<'de> Deserialize<'de> for Owner
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Owner, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Owner, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Owner
impl Serialize for Owner
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 Owner
impl<'__r> ToResponse<'__r> for Owner
impl Eq for Owner
impl StructuralPartialEq for Owner
Auto Trait Implementations§
impl Freeze for Owner
impl RefUnwindSafe for Owner
impl Send for Owner
impl Sync for Owner
impl Unpin for Owner
impl UnwindSafe for Owner
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.