pub struct EngagementOrder {
pub engagement_type: i32,
pub target_id: String,
pub target_location: Option<Position>,
pub target_description: Option<String>,
pub weapon_system_id: String,
pub max_collateral_radius_meters: Option<f32>,
pub require_visual_confirmation: bool,
}Expand description
Engagement order command
Fields§
§engagement_type: i32§target_id: StringTarget information
target_location: Option<Position>§target_description: Option<String>§weapon_system_id: StringWeapon selection
max_collateral_radius_meters: Option<f32>Safety constraints
require_visual_confirmation: boolImplementations§
Source§impl EngagementOrder
impl EngagementOrder
Sourcepub fn engagement_type(&self) -> EngagementType
pub fn engagement_type(&self) -> EngagementType
Returns the enum value of engagement_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_engagement_type(&mut self, value: EngagementType)
pub fn set_engagement_type(&mut self, value: EngagementType)
Sets engagement_type to the provided enum value.
Sourcepub fn target_description(&self) -> &str
pub fn target_description(&self) -> &str
Returns the value of target_description, or the default value if target_description is unset.
Sourcepub fn max_collateral_radius_meters(&self) -> f32
pub fn max_collateral_radius_meters(&self) -> f32
Returns the value of max_collateral_radius_meters, or the default value if max_collateral_radius_meters is unset.
Trait Implementations§
Source§impl Clone for EngagementOrder
impl Clone for EngagementOrder
Source§fn clone(&self) -> EngagementOrder
fn clone(&self) -> EngagementOrder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EngagementOrder
impl Debug for EngagementOrder
Source§impl Default for EngagementOrder
impl Default for EngagementOrder
Source§impl<'de> Deserialize<'de> for EngagementOrder
impl<'de> Deserialize<'de> for EngagementOrder
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 Message for EngagementOrder
impl Message for EngagementOrder
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for EngagementOrder
impl PartialEq for EngagementOrder
Source§fn eq(&self, other: &EngagementOrder) -> bool
fn eq(&self, other: &EngagementOrder) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EngagementOrder
impl Serialize for EngagementOrder
impl StructuralPartialEq for EngagementOrder
Auto Trait Implementations§
impl Freeze for EngagementOrder
impl RefUnwindSafe for EngagementOrder
impl Send for EngagementOrder
impl Sync for EngagementOrder
impl Unpin for EngagementOrder
impl UnsafeUnpin for EngagementOrder
impl UnwindSafe for EngagementOrder
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