pub struct DistributionRoute { /* private fields */ }Expand description
A distribution route path. This type performs no HTTP calls.
Implementations§
Source§impl DistributionRoute
impl DistributionRoute
Sourcepub fn blob(repository: &RepositoryName, digest: &OciDigest) -> Self
pub fn blob(repository: &RepositoryName, digest: &OciDigest) -> Self
Creates a blob route path.
Sourcepub fn manifest(
repository: &RepositoryName,
reference: &ManifestReference,
) -> Self
pub fn manifest( repository: &RepositoryName, reference: &ManifestReference, ) -> Self
Creates a manifest route path.
Sourcepub const fn action(&self) -> RouteAction
pub const fn action(&self) -> RouteAction
Returns the route action.
Trait Implementations§
Source§impl Clone for DistributionRoute
impl Clone for DistributionRoute
Source§fn clone(&self) -> DistributionRoute
fn clone(&self) -> DistributionRoute
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 DistributionRoute
impl Debug for DistributionRoute
Source§impl Hash for DistributionRoute
impl Hash for DistributionRoute
Source§impl Ord for DistributionRoute
impl Ord for DistributionRoute
Source§fn cmp(&self, other: &DistributionRoute) -> Ordering
fn cmp(&self, other: &DistributionRoute) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DistributionRoute
impl PartialEq for DistributionRoute
Source§fn eq(&self, other: &DistributionRoute) -> bool
fn eq(&self, other: &DistributionRoute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DistributionRoute
impl PartialOrd for DistributionRoute
impl Eq for DistributionRoute
impl StructuralPartialEq for DistributionRoute
Auto Trait Implementations§
impl Freeze for DistributionRoute
impl RefUnwindSafe for DistributionRoute
impl Send for DistributionRoute
impl Sync for DistributionRoute
impl Unpin for DistributionRoute
impl UnsafeUnpin for DistributionRoute
impl UnwindSafe for DistributionRoute
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