pub struct ChangeCrewRoleEvent {
pub telepresence: bool,
pub role: ChangeCrewRoleEventRole,
}
Expand description
Fired when in a multi-crew session and the current player changes their role.
Fields§
§telepresence: bool
§role: ChangeCrewRoleEventRole
The new role the current player has changed to.
Trait Implementations§
Source§impl Clone for ChangeCrewRoleEvent
impl Clone for ChangeCrewRoleEvent
Source§fn clone(&self) -> ChangeCrewRoleEvent
fn clone(&self) -> ChangeCrewRoleEvent
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 ChangeCrewRoleEvent
impl Debug for ChangeCrewRoleEvent
Source§impl<'de> Deserialize<'de> for ChangeCrewRoleEvent
impl<'de> Deserialize<'de> for ChangeCrewRoleEvent
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 ChangeCrewRoleEvent
impl PartialEq for ChangeCrewRoleEvent
Source§impl Serialize for ChangeCrewRoleEvent
impl Serialize for ChangeCrewRoleEvent
impl StructuralPartialEq for ChangeCrewRoleEvent
Auto Trait Implementations§
impl Freeze for ChangeCrewRoleEvent
impl RefUnwindSafe for ChangeCrewRoleEvent
impl Send for ChangeCrewRoleEvent
impl Sync for ChangeCrewRoleEvent
impl Unpin for ChangeCrewRoleEvent
impl UnwindSafe for ChangeCrewRoleEvent
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