pub struct TeamMember {
pub team_id: String,
pub user: User,
pub role: String,
pub permissions: Option<i32>,
pub accepted: bool,
pub payouts_split: Option<i32>,
pub ordering: Option<i32>,
}Fields§
§team_id: StringThe ID of the team this team member is a member of
user: User§role: StringThe user’s role on the team
permissions: Option<i32>The user’s permissions in bitfield format (requires authorization to view) In order from first to tenth bit, the bits are: - UPLOAD_VERSION - DELETE_VERSION - EDIT_DETAILS - EDIT_BODY - MANAGE_INVITES - REMOVE_MEMBER - EDIT_MEMBER - DELETE_PROJECT - VIEW_ANALYTICS - VIEW_PAYOUTS
accepted: boolWhether or not the user has accepted to be on the team (requires authorization to view)
payouts_split: Option<i32>The split of payouts going to this user. The proportion of payouts they get is their split divided by the sum of the splits of all members.
ordering: Option<i32>The order of the team member.
Implementations§
Source§impl TeamMember
impl TeamMember
Trait Implementations§
Source§impl Clone for TeamMember
impl Clone for TeamMember
Source§fn clone(&self) -> TeamMember
fn clone(&self) -> TeamMember
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 TeamMember
impl Debug for TeamMember
Source§impl Default for TeamMember
impl Default for TeamMember
Source§fn default() -> TeamMember
fn default() -> TeamMember
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TeamMember
impl<'de> Deserialize<'de> for TeamMember
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 TeamMember
impl PartialEq for TeamMember
Source§impl Serialize for TeamMember
impl Serialize for TeamMember
impl StructuralPartialEq for TeamMember
Auto Trait Implementations§
impl Freeze for TeamMember
impl RefUnwindSafe for TeamMember
impl Send for TeamMember
impl Sync for TeamMember
impl Unpin for TeamMember
impl UnwindSafe for TeamMember
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