#[repr(C)]pub struct GroupMember {
pub subgroup: u32,
pub profession: u32,
pub elite_specialization: u32,
/* private fields */
}Expand description
Group member.
This struct uses the C layout.
Instead of cloning this it is recommended to convert to GroupMemberOwned via Into or to_owned.
Fields§
§subgroup: u32Subgroup of the group member.
0 when in a party. 1-15 subgrups when in a squad.
profession: u32Profession of the group member.
0 when unknown, for example on loading screen or character select.
elite_specialization: u323rd specialization of the group member (not always elite).
0 when unknown, for example on loading screen or character select.
Implementations§
Source§impl GroupMember
impl GroupMember
Sourcepub fn to_owned(&self) -> GroupMemberOwned
pub fn to_owned(&self) -> GroupMemberOwned
Converts the member to a GroupMemberOwned.
Sourcepub const fn account_name_ptr(&self) -> *const c_char
pub const fn account_name_ptr(&self) -> *const c_char
Returns the account name of the member as pointer.
Sourcepub fn account_name_cstr(&self) -> &CStr
pub fn account_name_cstr(&self) -> &CStr
Returns the account name of the member as CStr.
Sourcepub fn account_name(&self) -> String
pub fn account_name(&self) -> String
Returns the account name of the member as owned String.
Sourcepub const fn character_name_ptr(&self) -> *const c_char
pub const fn character_name_ptr(&self) -> *const c_char
Returns the character name of the member as pointer.
Sourcepub fn character_name_cstr(&self) -> &CStr
pub fn character_name_cstr(&self) -> &CStr
Returns the account name of the member as CStr.
Sourcepub fn character_name(&self) -> String
pub fn character_name(&self) -> String
Returns the character name of the member as owned String.
Sourcepub const fn flags(&self) -> GroupMemberFlags
pub const fn flags(&self) -> GroupMemberFlags
Returns the flags of the member.
Sourcepub const fn is_in_instance(&self) -> bool
pub const fn is_in_instance(&self) -> bool
Returns whether the member is in the current instance.
Sourcepub const fn is_commander(&self) -> bool
pub const fn is_commander(&self) -> bool
Returns whether the member if the commander of the current squad.
Sourcepub const fn is_lieutenant(&self) -> bool
pub const fn is_lieutenant(&self) -> bool
Returns whether the member is a lieutenant in the current squad.
Trait Implementations§
Source§impl Clone for GroupMember
impl Clone for GroupMember
Source§fn clone(&self) -> GroupMember
fn clone(&self) -> GroupMember
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more