pub struct EnvironmentInteractionDomain {
pub doors: Option<Vec<DoorInteraction>>,
pub elevators: Option<Vec<ElevatorInteraction>>,
pub charging_stations: Option<Vec<ChargingStationInteraction>>,
pub surface: Option<SurfaceInfo>,
}Expand description
Environment interaction domain.
Fields§
§doors: Option<Vec<DoorInteraction>>Door interactions
elevators: Option<Vec<ElevatorInteraction>>Elevator interactions
charging_stations: Option<Vec<ChargingStationInteraction>>Charging station interactions
surface: Option<SurfaceInfo>Surface detection
Implementations§
Source§impl EnvironmentInteractionDomain
impl EnvironmentInteractionDomain
Sourcepub fn with_door(self, door: DoorInteraction) -> Self
pub fn with_door(self, door: DoorInteraction) -> Self
Add a door interaction.
Sourcepub fn with_elevator(self, elevator: ElevatorInteraction) -> Self
pub fn with_elevator(self, elevator: ElevatorInteraction) -> Self
Add an elevator interaction.
Sourcepub fn with_charging_station(self, station: ChargingStationInteraction) -> Self
pub fn with_charging_station(self, station: ChargingStationInteraction) -> Self
Add a charging station interaction.
Sourcepub fn with_surface(self, surface: SurfaceInfo) -> Self
pub fn with_surface(self, surface: SurfaceInfo) -> Self
Set surface info.
Trait Implementations§
Source§impl Clone for EnvironmentInteractionDomain
impl Clone for EnvironmentInteractionDomain
Source§fn clone(&self) -> EnvironmentInteractionDomain
fn clone(&self) -> EnvironmentInteractionDomain
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 EnvironmentInteractionDomain
impl Debug for EnvironmentInteractionDomain
Source§impl Default for EnvironmentInteractionDomain
impl Default for EnvironmentInteractionDomain
Source§fn default() -> EnvironmentInteractionDomain
fn default() -> EnvironmentInteractionDomain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnvironmentInteractionDomain
impl<'de> Deserialize<'de> for EnvironmentInteractionDomain
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
Auto Trait Implementations§
impl Freeze for EnvironmentInteractionDomain
impl RefUnwindSafe for EnvironmentInteractionDomain
impl Send for EnvironmentInteractionDomain
impl Sync for EnvironmentInteractionDomain
impl Unpin for EnvironmentInteractionDomain
impl UnwindSafe for EnvironmentInteractionDomain
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