pub struct UserProjectMembership {
pub id: u64,
pub project: ProjectEssentials,
pub roles: Vec<RoleEssentials>,
}
Expand description
a minimal type for project memberships to be used in lists of memberships returned as part of the user
Fields§
§id: u64
numeric id
project: ProjectEssentials
the project
roles: Vec<RoleEssentials>
the roles the user has in the project
Trait Implementations§
Source§impl Clone for UserProjectMembership
impl Clone for UserProjectMembership
Source§fn clone(&self) -> UserProjectMembership
fn clone(&self) -> UserProjectMembership
Returns a copy 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 UserProjectMembership
impl Debug for UserProjectMembership
Source§impl<'de> Deserialize<'de> for UserProjectMembership
impl<'de> Deserialize<'de> for UserProjectMembership
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 UserProjectMembership
impl PartialEq for UserProjectMembership
Source§impl Serialize for UserProjectMembership
impl Serialize for UserProjectMembership
impl Eq for UserProjectMembership
impl StructuralPartialEq for UserProjectMembership
Auto Trait Implementations§
impl Freeze for UserProjectMembership
impl RefUnwindSafe for UserProjectMembership
impl Send for UserProjectMembership
impl Sync for UserProjectMembership
impl Unpin for UserProjectMembership
impl UnwindSafe for UserProjectMembership
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