pub struct ExtensionRef { /* private fields */ }Expand description
Reference to an env extension binding: ext://<descriptor-path>[/<instance>].
Unlike SecretRef / RuntimeRef, an extension ref carries no env
segment — extensions are resolved within the already-known env context of
the workload that names them. <descriptor-path> is a
PackDescriptor path (version-independent — the
binding owns the concrete version); the optional <instance> selects one of
N instances of the same extension type. Lookup is by (path, instance_id)
against Environment::extensions, the same key its
uniqueness invariant enforces.
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionRef
impl Clone for ExtensionRef
Source§fn clone(&self) -> ExtensionRef
fn clone(&self) -> ExtensionRef
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 moreSource§impl Debug for ExtensionRef
impl Debug for ExtensionRef
Source§impl<'de> Deserialize<'de> for ExtensionRef
impl<'de> Deserialize<'de> for ExtensionRef
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 Display for ExtensionRef
impl Display for ExtensionRef
impl Eq for ExtensionRef
Source§impl From<ExtensionRef> for String
impl From<ExtensionRef> for String
Source§fn from(value: ExtensionRef) -> Self
fn from(value: ExtensionRef) -> Self
Converts to this type from the input type.
Source§impl FromStr for ExtensionRef
impl FromStr for ExtensionRef
Source§impl Hash for ExtensionRef
impl Hash for ExtensionRef
Source§impl PartialEq for ExtensionRef
impl PartialEq for ExtensionRef
Source§fn eq(&self, other: &ExtensionRef) -> bool
fn eq(&self, other: &ExtensionRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtensionRef
impl Serialize for ExtensionRef
impl StructuralPartialEq for ExtensionRef
Auto Trait Implementations§
impl Freeze for ExtensionRef
impl RefUnwindSafe for ExtensionRef
impl Send for ExtensionRef
impl Sync for ExtensionRef
impl Unpin for ExtensionRef
impl UnsafeUnpin for ExtensionRef
impl UnwindSafe for ExtensionRef
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,
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.