pub enum Target<Id> {
Id(Id),
Name(String),
}Variants§
Implementations§
Trait Implementations§
impl<Id: Eq> Eq for Target<Id>
Source§impl From<&CheckpointId> for Target<CheckpointId>
impl From<&CheckpointId> for Target<CheckpointId>
Source§fn from(id: &CheckpointId) -> Self
fn from(id: &CheckpointId) -> Self
Converts to this type from the input type.
Source§impl From<&InstanceId> for Target<InstanceId>
impl From<&InstanceId> for Target<InstanceId>
Source§fn from(id: &InstanceId) -> Self
fn from(id: &InstanceId) -> Self
Converts to this type from the input type.
Source§impl From<&JobGroupId> for Target<JobGroupId>
impl From<&JobGroupId> for Target<JobGroupId>
Source§fn from(id: &JobGroupId) -> Self
fn from(id: &JobGroupId) -> Self
Converts to this type from the input type.
Source§impl From<&RevisionId> for Target<RevisionId>
impl From<&RevisionId> for Target<RevisionId>
Source§fn from(id: &RevisionId) -> Self
fn from(id: &RevisionId) -> Self
Converts to this type from the input type.
Source§impl From<&TemplateId> for Target<TemplateId>
impl From<&TemplateId> for Target<TemplateId>
Source§fn from(id: &TemplateId) -> Self
fn from(id: &TemplateId) -> Self
Converts to this type from the input type.
Source§impl From<&WorkloadId> for Target<WorkloadId>
impl From<&WorkloadId> for Target<WorkloadId>
Source§fn from(id: &WorkloadId) -> Self
fn from(id: &WorkloadId) -> Self
Converts to this type from the input type.
Source§impl From<&WorkspaceId> for Target<WorkspaceId>
impl From<&WorkspaceId> for Target<WorkspaceId>
Source§fn from(id: &WorkspaceId) -> Self
fn from(id: &WorkspaceId) -> Self
Converts to this type from the input type.
Source§impl From<CheckpointId> for Target<CheckpointId>
impl From<CheckpointId> for Target<CheckpointId>
Source§fn from(id: CheckpointId) -> Self
fn from(id: CheckpointId) -> Self
Converts to this type from the input type.
Source§impl From<InstanceId> for Target<InstanceId>
impl From<InstanceId> for Target<InstanceId>
Source§fn from(id: InstanceId) -> Self
fn from(id: InstanceId) -> Self
Converts to this type from the input type.
Source§impl From<JobGroupId> for Target<JobGroupId>
impl From<JobGroupId> for Target<JobGroupId>
Source§fn from(id: JobGroupId) -> Self
fn from(id: JobGroupId) -> Self
Converts to this type from the input type.
Source§impl From<RevisionId> for Target<RevisionId>
impl From<RevisionId> for Target<RevisionId>
Source§fn from(id: RevisionId) -> Self
fn from(id: RevisionId) -> Self
Converts to this type from the input type.
Source§impl From<TemplateId> for Target<TemplateId>
impl From<TemplateId> for Target<TemplateId>
Source§fn from(id: TemplateId) -> Self
fn from(id: TemplateId) -> Self
Converts to this type from the input type.
Source§impl From<WorkloadId> for Target<WorkloadId>
impl From<WorkloadId> for Target<WorkloadId>
Source§fn from(id: WorkloadId) -> Self
fn from(id: WorkloadId) -> Self
Converts to this type from the input type.
Source§impl From<WorkspaceId> for Target<WorkspaceId>
impl From<WorkspaceId> for Target<WorkspaceId>
Source§fn from(id: WorkspaceId) -> Self
fn from(id: WorkspaceId) -> Self
Converts to this type from the input type.
impl<Id: PartialEq> StructuralPartialEq for Target<Id>
Auto Trait Implementations§
impl<Id> Forget for Target<Id>
impl<Id> Freeze for Target<Id>
impl<Id> Move for Target<Id>
impl<Id> RefUnwindSafe for Target<Id>where
Id: RefUnwindSafe,
impl<Id> Send for Target<Id>
impl<Id> Sync for Target<Id>
impl<Id> Unpin for Target<Id>
impl<Id> UnsafeUnpin for Target<Id>
impl<Id> UnwindSafe for Target<Id>where
Id: UnwindSafe,
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> 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 more