pub struct CapabilityAdvertisement {
pub platform_id: String,
pub platform_type: String,
pub position: Position,
pub status: OperationalStatus,
pub readiness: f64,
pub capabilities: Vec<CapabilityInfo>,
pub cell_id: Option<String>,
pub formation_id: Option<String>,
pub timestamp: DateTime<Utc>,
}Expand description
Capability advertisement from a Peat platform
Announces what a platform can do (sensor types, compute capabilities, etc.)
Fields§
§platform_id: StringPlatform identifier
platform_type: StringPlatform type (UGV, UAV, Soldier System, etc.)
position: PositionCurrent position
status: OperationalStatusOperational status
readiness: f64Readiness level (0.0 - 1.0)
capabilities: Vec<CapabilityInfo>Capabilities offered by this platform
cell_id: Option<String>Cell membership (if assigned)
formation_id: Option<String>Formation membership (if assigned)
timestamp: DateTime<Utc>Timestamp of the advertisement
Implementations§
Source§impl CapabilityAdvertisement
impl CapabilityAdvertisement
Sourcepub fn new(
platform_id: String,
platform_type: String,
position: Position,
status: OperationalStatus,
readiness: f64,
) -> Self
pub fn new( platform_id: String, platform_type: String, position: Position, status: OperationalStatus, readiness: f64, ) -> Self
Create a new capability advertisement
Sourcepub fn with_capability(self, capability: CapabilityInfo) -> Self
pub fn with_capability(self, capability: CapabilityInfo) -> Self
Add a capability
Trait Implementations§
Source§impl Clone for CapabilityAdvertisement
impl Clone for CapabilityAdvertisement
Source§fn clone(&self) -> CapabilityAdvertisement
fn clone(&self) -> CapabilityAdvertisement
Returns a duplicate 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 CapabilityAdvertisement
impl Debug for CapabilityAdvertisement
Source§impl<'de> Deserialize<'de> for CapabilityAdvertisement
impl<'de> Deserialize<'de> for CapabilityAdvertisement
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 CapabilityAdvertisement
impl PartialEq for CapabilityAdvertisement
Source§impl Serialize for CapabilityAdvertisement
impl Serialize for CapabilityAdvertisement
impl StructuralPartialEq for CapabilityAdvertisement
Auto Trait Implementations§
impl Freeze for CapabilityAdvertisement
impl RefUnwindSafe for CapabilityAdvertisement
impl Send for CapabilityAdvertisement
impl Sync for CapabilityAdvertisement
impl Unpin for CapabilityAdvertisement
impl UnsafeUnpin for CapabilityAdvertisement
impl UnwindSafe for CapabilityAdvertisement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more