pub struct RegistryRef {
pub registry: String,
pub repository: String,
pub scheme: String,
}Expand description
An oci:// reference: registry host + repository.
Fields§
§registry: String§repository: String§scheme: Stringhttp for the test double, https everywhere real. Never configurable
from a pin — parsed from the explicit --from reference only.
Implementations§
Source§impl RegistryRef
impl RegistryRef
Sourcepub fn parse(reference: &str) -> Result<Self, SourceError>
pub fn parse(reference: &str) -> Result<Self, SourceError>
Parse oci://ghcr.io/org/repo (https) or oci+http://host:port/repo
(test double / air-gapped mirror on a trusted network — acceptance is
unaffected either way; transport privacy is not what the trust model
rests on).
Trait Implementations§
Source§impl Clone for RegistryRef
impl Clone for RegistryRef
Source§fn clone(&self) -> RegistryRef
fn clone(&self) -> RegistryRef
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 RegistryRef
impl Debug for RegistryRef
impl Eq for RegistryRef
Source§impl PartialEq for RegistryRef
impl PartialEq for RegistryRef
impl StructuralPartialEq for RegistryRef
Auto Trait Implementations§
impl Freeze for RegistryRef
impl RefUnwindSafe for RegistryRef
impl Send for RegistryRef
impl Sync for RegistryRef
impl Unpin for RegistryRef
impl UnsafeUnpin for RegistryRef
impl UnwindSafe for RegistryRef
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