pub enum ComponentSourceRef {
Oci(String),
Repo(String),
Store(String),
File(String),
}Expand description
Supported component source references.
Variants§
Oci(String)
Public OCI reference (oci://repo/name:tag or oci://repo/name@sha256:...).
Repo(String)
Private repository reference (repo://...).
Store(String)
Store-licensed component reference (store://...).
File(String)
File-based component reference (file://...).
Implementations§
Source§impl ComponentSourceRef
impl ComponentSourceRef
Sourcepub fn is_tag(&self) -> bool
pub fn is_tag(&self) -> bool
Returns true when this is an OCI reference using a tag suffix (:tag).
Sourcepub fn is_digest(&self) -> bool
pub fn is_digest(&self) -> bool
Returns true when this is an OCI reference using a digest suffix (@sha256:...).
Sourcepub fn normalized(&self) -> String
pub fn normalized(&self) -> String
Returns a canonical string form of the reference.
Trait Implementations§
Source§impl Clone for ComponentSourceRef
impl Clone for ComponentSourceRef
Source§fn clone(&self) -> ComponentSourceRef
fn clone(&self) -> ComponentSourceRef
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 ComponentSourceRef
impl Debug for ComponentSourceRef
Source§impl<'de> Deserialize<'de> for ComponentSourceRef
impl<'de> Deserialize<'de> for ComponentSourceRef
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 ComponentSourceRef
impl Display for ComponentSourceRef
Source§impl From<ComponentSourceRef> for String
impl From<ComponentSourceRef> for String
Source§fn from(value: ComponentSourceRef) -> Self
fn from(value: ComponentSourceRef) -> Self
Converts to this type from the input type.
Source§impl FromStr for ComponentSourceRef
impl FromStr for ComponentSourceRef
Source§impl Hash for ComponentSourceRef
impl Hash for ComponentSourceRef
Source§impl PartialEq for ComponentSourceRef
impl PartialEq for ComponentSourceRef
Source§impl Serialize for ComponentSourceRef
impl Serialize for ComponentSourceRef
Source§impl TryFrom<String> for ComponentSourceRef
impl TryFrom<String> for ComponentSourceRef
impl Eq for ComponentSourceRef
impl StructuralPartialEq for ComponentSourceRef
Auto Trait Implementations§
impl Freeze for ComponentSourceRef
impl RefUnwindSafe for ComponentSourceRef
impl Send for ComponentSourceRef
impl Sync for ComponentSourceRef
impl Unpin for ComponentSourceRef
impl UnwindSafe for ComponentSourceRef
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<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.