pub struct ConnectionTargetExpression { /* private fields */ }
Expand description
A connection target, specified by an instance and a port.
Implementations§
Source§impl ConnectionTargetExpression
impl ConnectionTargetExpression
Sourcepub fn new(instance: InstanceTarget, port: impl Into<InstancePort>) -> Self
pub fn new(instance: InstanceTarget, port: impl Into<InstancePort>) -> Self
Create a new ConnectionTargetExpression
Sourcepub fn new_data(
instance: InstanceTarget,
port: impl Into<InstancePort>,
data: Option<HashMap<String, LiquidJsonValue>>,
) -> Self
pub fn new_data( instance: InstanceTarget, port: impl Into<InstancePort>, data: Option<HashMap<String, LiquidJsonValue>>, ) -> Self
Create a new ConnectionTargetExpression with default data
Sourcepub const fn instance(&self) -> &InstanceTarget
pub const fn instance(&self) -> &InstanceTarget
Get the instance target.
Sourcepub fn instance_mut(&mut self) -> &mut InstanceTarget
pub fn instance_mut(&mut self) -> &mut InstanceTarget
Get the instance target.
Sourcepub const fn port(&self) -> &InstancePort
pub const fn port(&self) -> &InstancePort
Get the port.
Sourcepub fn into_parts(
self,
) -> (InstanceTarget, InstancePort, Option<HashMap<String, LiquidJsonValue>>)
pub fn into_parts( self, ) -> (InstanceTarget, InstancePort, Option<HashMap<String, LiquidJsonValue>>)
Get the owned parts of the connection target.
Trait Implementations§
Source§impl Clone for ConnectionTargetExpression
impl Clone for ConnectionTargetExpression
Source§fn clone(&self) -> ConnectionTargetExpression
fn clone(&self) -> ConnectionTargetExpression
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 ConnectionTargetExpression
impl Debug for ConnectionTargetExpression
Source§impl Display for ConnectionTargetExpression
impl Display for ConnectionTargetExpression
impl StructuralPartialEq for ConnectionTargetExpression
Auto Trait Implementations§
impl Freeze for ConnectionTargetExpression
impl RefUnwindSafe for ConnectionTargetExpression
impl Send for ConnectionTargetExpression
impl Sync for ConnectionTargetExpression
impl Unpin for ConnectionTargetExpression
impl UnwindSafe for ConnectionTargetExpression
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> 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