pub struct ItemInteractionPull {
pub location_client: ItemLocationAncestors,
pub location_server: ItemLocationAncestors,
}Expand description
Represents a location-to-location pull interaction.
This can represent a file download from a server.
Fields§
§location_client: ItemLocationAncestorsWhere the interaction begins from.
Example:
ItemLocation::localhost()ItemLocation::new("/path/to/file", ItemLocationType::Path)
location_server: ItemLocationAncestorsWhere the interaction goes to.
Example:
ItemLocation::new("app.domain.com", ItemLocationType::Host)ItemLocation::new("http://app.domain.com/resource", ItemLocationType::Path)
Implementations§
Source§impl ItemInteractionPull
impl ItemInteractionPull
Sourcepub fn new(
location_client: ItemLocationAncestors,
location_server: ItemLocationAncestors,
) -> Self
pub fn new( location_client: ItemLocationAncestors, location_server: ItemLocationAncestors, ) -> Self
Returns a new ItemInteractionPull.
Sourcepub fn location_client(&self) -> &[ItemLocation]
pub fn location_client(&self) -> &[ItemLocation]
Returns where the interaction begins from.
Example:
ItemLocation::localhost()ItemLocation::new("/path/to/file", ItemLocationType::Path)
Sourcepub fn location_server(&self) -> &[ItemLocation]
pub fn location_server(&self) -> &[ItemLocation]
Returns where the interaction goes to.
Example:
ItemLocation::new("app.domain.com", ItemLocationType::Host)ItemLocation::new("http://app.domain.com/resource", ItemLocationType::Path)
Trait Implementations§
Source§impl Clone for ItemInteractionPull
impl Clone for ItemInteractionPull
Source§fn clone(&self) -> ItemInteractionPull
fn clone(&self) -> ItemInteractionPull
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 ItemInteractionPull
impl Debug for ItemInteractionPull
Source§impl<'de> Deserialize<'de> for ItemInteractionPull
impl<'de> Deserialize<'de> for ItemInteractionPull
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<ItemInteractionPull> for ItemInteraction
impl From<ItemInteractionPull> for ItemInteraction
Source§fn from(item_interaction_pull: ItemInteractionPull) -> Self
fn from(item_interaction_pull: ItemInteractionPull) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ItemInteractionPull
impl PartialEq for ItemInteractionPull
Source§impl Serialize for ItemInteractionPull
impl Serialize for ItemInteractionPull
impl Eq for ItemInteractionPull
impl StructuralPartialEq for ItemInteractionPull
Auto Trait Implementations§
impl Freeze for ItemInteractionPull
impl RefUnwindSafe for ItemInteractionPull
impl Send for ItemInteractionPull
impl Sync for ItemInteractionPull
impl Unpin for ItemInteractionPull
impl UnwindSafe for ItemInteractionPull
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