pub struct StoredTarget<'a> {
pub locator: &'a TargetLocator,
pub template: &'a TargetTemplate,
pub session_id: &'a str,
}Expand description
One session’s stored target: what the store holds, plus the configuration and the session identity the stored form deliberately does not repeat.
An SSH locator records only the host and an EC2 locator only the instance
and its resolved address, while an execution plan needs the whole ssh
invocation, the AWS profile and region, and the session’s workspace path.
Fields§
§locator: &'a TargetLocator§template: &'a TargetTemplate§session_id: &'a strTrait Implementations§
Source§impl<'a> Clone for StoredTarget<'a>
impl<'a> Clone for StoredTarget<'a>
Source§fn clone(&self) -> StoredTarget<'a>
fn clone(&self) -> StoredTarget<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for StoredTarget<'a>
Source§impl<'a> Debug for StoredTarget<'a>
impl<'a> Debug for StoredTarget<'a>
Source§impl TryFrom<StoredTarget<'_>> for TargetLocator
impl TryFrom<StoredTarget<'_>> for TargetLocator
Source§type Error = TargetConversionError
type Error = TargetConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
stored: StoredTarget<'_>,
) -> Result<TargetLocator, <TargetLocator as TryFrom<StoredTarget<'_>>>::Error>
fn try_from( stored: StoredTarget<'_>, ) -> Result<TargetLocator, <TargetLocator as TryFrom<StoredTarget<'_>>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl<'a> Freeze for StoredTarget<'a>
impl<'a> RefUnwindSafe for StoredTarget<'a>
impl<'a> Send for StoredTarget<'a>
impl<'a> Sync for StoredTarget<'a>
impl<'a> Unpin for StoredTarget<'a>
impl<'a> UnsafeUnpin for StoredTarget<'a>
impl<'a> UnwindSafe for StoredTarget<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.