Struct NpmRegistryUrl
pub struct NpmRegistryUrl(/* private fields */);Expand description
npm registry URL metadata.
Implementations§
§impl NpmRegistryUrl
impl NpmRegistryUrl
pub fn new(input: &str) -> Result<NpmRegistryUrl, NpmTextError>
pub fn new(input: &str) -> Result<NpmRegistryUrl, NpmTextError>
Creates registry URL metadata.
§Errors
Returns NpmTextError when input is empty, contains whitespace, or is not HTTP(S)-shaped.
Trait Implementations§
§impl Clone for NpmRegistryUrl
impl Clone for NpmRegistryUrl
§fn clone(&self) -> NpmRegistryUrl
fn clone(&self) -> NpmRegistryUrl
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 more§impl Debug for NpmRegistryUrl
impl Debug for NpmRegistryUrl
§impl Hash for NpmRegistryUrl
impl Hash for NpmRegistryUrl
§impl Ord for NpmRegistryUrl
impl Ord for NpmRegistryUrl
§impl PartialEq for NpmRegistryUrl
impl PartialEq for NpmRegistryUrl
§impl PartialOrd for NpmRegistryUrl
impl PartialOrd for NpmRegistryUrl
impl Eq for NpmRegistryUrl
impl StructuralPartialEq for NpmRegistryUrl
Auto Trait Implementations§
impl Freeze for NpmRegistryUrl
impl RefUnwindSafe for NpmRegistryUrl
impl Send for NpmRegistryUrl
impl Sync for NpmRegistryUrl
impl Unpin for NpmRegistryUrl
impl UnsafeUnpin for NpmRegistryUrl
impl UnwindSafe for NpmRegistryUrl
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