pub struct ItemInteractionWithin {
pub location: ItemLocationAncestors,
}Expand description
Represents a resource interaction that happens within a location.
This can represent application installation / startup happening on a server.
Fields§
§location: ItemLocationAncestorsWhere the interaction is happening.
Example:
ItemLocation::Server { address, port: None }
Implementations§
Source§impl ItemInteractionWithin
impl ItemInteractionWithin
Sourcepub fn new(location: ItemLocationAncestors) -> Self
pub fn new(location: ItemLocationAncestors) -> Self
Returns a new ItemInteractionWithin.
Sourcepub fn location(&self) -> &[ItemLocation]
pub fn location(&self) -> &[ItemLocation]
Returns where the interaction is happening.
Trait Implementations§
Source§impl Clone for ItemInteractionWithin
impl Clone for ItemInteractionWithin
Source§fn clone(&self) -> ItemInteractionWithin
fn clone(&self) -> ItemInteractionWithin
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 ItemInteractionWithin
impl Debug for ItemInteractionWithin
Source§impl<'de> Deserialize<'de> for ItemInteractionWithin
impl<'de> Deserialize<'de> for ItemInteractionWithin
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 From<ItemInteractionWithin> for ItemInteraction
impl From<ItemInteractionWithin> for ItemInteraction
Source§fn from(item_interaction_within: ItemInteractionWithin) -> Self
fn from(item_interaction_within: ItemInteractionWithin) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ItemInteractionWithin
impl PartialEq for ItemInteractionWithin
Source§impl Serialize for ItemInteractionWithin
impl Serialize for ItemInteractionWithin
impl Eq for ItemInteractionWithin
impl StructuralPartialEq for ItemInteractionWithin
Auto Trait Implementations§
impl Freeze for ItemInteractionWithin
impl RefUnwindSafe for ItemInteractionWithin
impl Send for ItemInteractionWithin
impl Sync for ItemInteractionWithin
impl Unpin for ItemInteractionWithin
impl UnwindSafe for ItemInteractionWithin
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