pub struct InterdictedEvent {
pub submitted: bool,
pub interdictor: Option<String>,
pub is_player: bool,
pub is_thargoid: bool,
pub faction: Option<String>,
}
Expand description
Fired when the player has been interdicted and lost.
Fields§
§submitted: bool
Whether the player submitted to the interdiction.
interdictor: Option<String>
The name of the interdictor.
is_player: bool
Whether the interdictor is a player.
is_thargoid: bool
Whether the interdictor is a Thargoid vessel.
faction: Option<String>
The faction the interdictor is a part of.
Implementations§
Source§impl InterdictedEvent
impl InterdictedEvent
Sourcepub fn is_thargoid(&self) -> bool
pub fn is_thargoid(&self) -> bool
Whether the interdictor is a Thargoid vessel.
Sourcepub fn is_npc_pilot(&self) -> bool
pub fn is_npc_pilot(&self) -> bool
Whether the interdictor is an NPC pilot.
Trait Implementations§
Source§impl Clone for InterdictedEvent
impl Clone for InterdictedEvent
Source§fn clone(&self) -> InterdictedEvent
fn clone(&self) -> InterdictedEvent
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 InterdictedEvent
impl Debug for InterdictedEvent
Source§impl<'de> Deserialize<'de> for InterdictedEvent
impl<'de> Deserialize<'de> for InterdictedEvent
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 InterdictedEvent
impl PartialEq for InterdictedEvent
Source§impl Serialize for InterdictedEvent
impl Serialize for InterdictedEvent
impl StructuralPartialEq for InterdictedEvent
Auto Trait Implementations§
impl Freeze for InterdictedEvent
impl RefUnwindSafe for InterdictedEvent
impl Send for InterdictedEvent
impl Sync for InterdictedEvent
impl Unpin for InterdictedEvent
impl UnwindSafe for InterdictedEvent
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