pub struct CommunicationDomain {
pub network: Option<NetworkInfo>,
pub cellular: Option<CellularInfo>,
pub fleet: Option<FleetCommunication>,
pub integrations: Option<Vec<IntegrationStatus>>,
pub phytrace: Option<PhyTraceConnection>,
}Expand description
Communication domain containing network and connectivity information.
Fields§
§network: Option<NetworkInfo>Primary network connection
cellular: Option<CellularInfo>Cellular connection (if available)
fleet: Option<FleetCommunication>Fleet/robot-to-robot communication
integrations: Option<Vec<IntegrationStatus>>External system integrations
phytrace: Option<PhyTraceConnection>PhyTrace connection status
Implementations§
Source§impl CommunicationDomain
impl CommunicationDomain
Sourcepub fn with_network(network: NetworkInfo) -> Self
pub fn with_network(network: NetworkInfo) -> Self
Create with network info.
Sourcepub fn with_cellular(self, cellular: CellularInfo) -> Self
pub fn with_cellular(self, cellular: CellularInfo) -> Self
Builder to add cellular.
Sourcepub fn with_fleet(self, fleet: FleetCommunication) -> Self
pub fn with_fleet(self, fleet: FleetCommunication) -> Self
Builder to add fleet communication.
Sourcepub fn with_integration(self, integration: IntegrationStatus) -> Self
pub fn with_integration(self, integration: IntegrationStatus) -> Self
Builder to add integration.
Sourcepub fn with_phytrace(self, phytrace: PhyTraceConnection) -> Self
pub fn with_phytrace(self, phytrace: PhyTraceConnection) -> Self
Builder to add PhyTrace status.
Trait Implementations§
Source§impl Clone for CommunicationDomain
impl Clone for CommunicationDomain
Source§fn clone(&self) -> CommunicationDomain
fn clone(&self) -> CommunicationDomain
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 CommunicationDomain
impl Debug for CommunicationDomain
Source§impl Default for CommunicationDomain
impl Default for CommunicationDomain
Source§fn default() -> CommunicationDomain
fn default() -> CommunicationDomain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommunicationDomain
impl<'de> Deserialize<'de> for CommunicationDomain
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 Serialize for CommunicationDomain
impl Serialize for CommunicationDomain
Source§impl Validate for CommunicationDomain
impl Validate for CommunicationDomain
Auto Trait Implementations§
impl Freeze for CommunicationDomain
impl RefUnwindSafe for CommunicationDomain
impl Send for CommunicationDomain
impl Sync for CommunicationDomain
impl Unpin for CommunicationDomain
impl UnwindSafe for CommunicationDomain
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