pub enum RegistryMapping {
Registry(Registry),
Custom(CustomConfig),
}Expand description
Possible options for namespace configuration.
Variants§
Registry(Registry)
Use the given registry address (this will fetch the well-known registry metadata from the given hostname).
Custom(CustomConfig)
Use custom configuration for reaching a registry
Trait Implementations§
Source§impl Clone for RegistryMapping
impl Clone for RegistryMapping
Source§fn clone(&self) -> RegistryMapping
fn clone(&self) -> RegistryMapping
Returns a copy 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 RegistryMapping
impl Debug for RegistryMapping
Source§impl<'de> Deserialize<'de> for RegistryMapping
impl<'de> Deserialize<'de> for RegistryMapping
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
Auto Trait Implementations§
impl !Freeze for RegistryMapping
impl RefUnwindSafe for RegistryMapping
impl Send for RegistryMapping
impl Sync for RegistryMapping
impl Unpin for RegistryMapping
impl UnwindSafe for RegistryMapping
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