pub enum TargetKind {
Binding(BindingType),
Search,
Foundry,
}Expand description
What a ResolvedBinding resolved against Azure: a declared
dependencies entry’s BindingType, or one of an environment’s
implicit targets (its search service / foundry account), which are
not dependency types and so deliberately stay out of BindingType.
Variants§
Binding(BindingType)
A declared dependencies binding of this type.
Search
The environment’s search target (Microsoft.Search/searchServices).
Foundry
The environment’s foundry account
(Microsoft.CognitiveServices/accounts).
Implementations§
Source§impl TargetKind
impl TargetKind
Sourcepub fn binding_type(&self) -> Option<BindingType>
pub fn binding_type(&self) -> Option<BindingType>
The declared binding type, for the Binding case only.
Trait Implementations§
Source§impl Clone for TargetKind
impl Clone for TargetKind
Source§fn clone(&self) -> TargetKind
fn clone(&self) -> TargetKind
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 Copy for TargetKind
Source§impl Debug for TargetKind
impl Debug for TargetKind
Source§impl<'de> Deserialize<'de> for TargetKind
impl<'de> Deserialize<'de> for TargetKind
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TargetKind
impl Display for TargetKind
impl Eq for TargetKind
Source§impl From<BindingType> for TargetKind
impl From<BindingType> for TargetKind
Source§fn from(t: BindingType) -> Self
fn from(t: BindingType) -> Self
Converts to this type from the input type.
Source§impl FromStr for TargetKind
impl FromStr for TargetKind
Source§impl PartialEq for TargetKind
impl PartialEq for TargetKind
Source§impl Serialize for TargetKind
impl Serialize for TargetKind
impl StructuralPartialEq for TargetKind
Auto Trait Implementations§
impl Freeze for TargetKind
impl RefUnwindSafe for TargetKind
impl Send for TargetKind
impl Sync for TargetKind
impl Unpin for TargetKind
impl UnsafeUnpin for TargetKind
impl UnwindSafe for TargetKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.