Struct warg_client::RegistryUrl
source · pub struct RegistryUrl(/* private fields */);Expand description
The base URL of a registry server.
Implementations§
source§impl RegistryUrl
impl RegistryUrl
sourcepub fn new(url: impl IntoUrl) -> Result<Self>
pub fn new(url: impl IntoUrl) -> Result<Self>
Parses and validates the given URL into a RegistryUrl.
sourcepub fn safe_label(&self) -> String
pub fn safe_label(&self) -> String
Returns a mostly-human-readable string that identifies the registry and
contains only the characters [0-9a-zA-Z-._]. This string is
appropriate to use with external systems that can’t accept arbitrary
URLs such as file system paths.
Trait Implementations§
source§impl Clone for RegistryUrl
impl Clone for RegistryUrl
source§fn clone(&self) -> RegistryUrl
fn clone(&self) -> RegistryUrl
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 RegistryUrl
impl Debug for RegistryUrl
source§impl Display for RegistryUrl
impl Display for RegistryUrl
source§impl From<RegistryUrl> for Url
impl From<RegistryUrl> for Url
source§fn from(value: RegistryUrl) -> Self
fn from(value: RegistryUrl) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RegistryUrl
impl Send for RegistryUrl
impl Sync for RegistryUrl
impl Unpin for RegistryUrl
impl UnwindSafe for RegistryUrl
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