Skip to main content

EffectorSpec

Struct EffectorSpec 

Source
pub struct EffectorSpec {
Show 20 fields pub effector_id: String, pub name: String, pub effector_type: i32, pub category: i32, pub effector_class: String, pub max_range_m: f32, pub min_range_m: f32, pub rate_of_fire: f32, pub safety_state: i32, pub interlocks: Option<SafetyInterlocks>, pub engagement_state: i32, pub current_target: Option<TargetDesignation>, pub firing_solution: Option<FiringSolution>, pub required_authorization: i32, pub current_authorization: Option<Authorization>, pub roe_status: Option<RoeStatus>, pub mount_actuator_id: String, pub updated_at: Option<Timestamp>, pub metadata_json: String, pub capacity: Option<Capacity>,
}
Expand description

Complete effector specification

Fields§

§effector_id: String

Unique effector identifier within the platform Format: lowercase alphanumeric with hyphens, e.g., “m240-coax”, “smoke-l”

§name: String

Human-readable name e.g., “M240 Coaxial Machine Gun”, “Left Smoke Dispenser”

§effector_type: i32

Effector type

§category: i32

Effector category for ROE

§effector_class: String

Caliber/type for kinetic (e.g., “7.62x51mm NATO”) Wavelength for DEW (e.g., “1064nm”) Frequency for EW (e.g., “GPS L1”)

§max_range_m: f32

Maximum effective range (meters)

§min_range_m: f32

Minimum safe range (meters)

§rate_of_fire: f32

Rate of fire (rounds/min for kinetic, shots/min for DEW)

§safety_state: i32

Current safety state

§interlocks: Option<SafetyInterlocks>

Safety interlock status

§engagement_state: i32

Current engagement state

§current_target: Option<TargetDesignation>

Current target (if tracking/engaging)

§firing_solution: Option<FiringSolution>

Current firing solution (if computed)

§required_authorization: i32

Authorization level required

§current_authorization: Option<Authorization>

Current authorization (if any)

§roe_status: Option<RoeStatus>

Current ROE status

§mount_actuator_id: String

Mount/actuator reference (links to actuator.proto) e.g., “turret-main” for the turret actuator controlling this effector

§updated_at: Option<Timestamp>

Timestamp of last state update

§metadata_json: String

Additional metadata (JSON)

§capacity: Option<Capacity>

Ammunition/capacity (one of)

Implementations§

Source§

impl EffectorSpec

Source

pub fn effector_type(&self) -> EffectorType

Returns the enum value of effector_type, or the default if the field is set to an invalid enum value.

Source

pub fn set_effector_type(&mut self, value: EffectorType)

Sets effector_type to the provided enum value.

Source

pub fn category(&self) -> EffectorCategory

Returns the enum value of category, or the default if the field is set to an invalid enum value.

Source

pub fn set_category(&mut self, value: EffectorCategory)

Sets category to the provided enum value.

Source

pub fn safety_state(&self) -> SafetyState

Returns the enum value of safety_state, or the default if the field is set to an invalid enum value.

Source

pub fn set_safety_state(&mut self, value: SafetyState)

Sets safety_state to the provided enum value.

Source

pub fn engagement_state(&self) -> EngagementState

Returns the enum value of engagement_state, or the default if the field is set to an invalid enum value.

Source

pub fn set_engagement_state(&mut self, value: EngagementState)

Sets engagement_state to the provided enum value.

Source

pub fn required_authorization(&self) -> AuthorizationLevel

Returns the enum value of required_authorization, or the default if the field is set to an invalid enum value.

Source

pub fn set_required_authorization(&mut self, value: AuthorizationLevel)

Sets required_authorization to the provided enum value.

Trait Implementations§

Source§

impl Clone for EffectorSpec

Source§

fn clone(&self) -> EffectorSpec

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EffectorSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EffectorSpec

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EffectorSpec

Source§

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 EffectorSpec

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 EffectorSpec

Source§

fn eq(&self, other: &EffectorSpec) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EffectorSpec

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EffectorSpec

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,