Struct RepositoryName
pub struct RepositoryName(/* private fields */);Expand description
A validated repository name.
Implementations§
§impl RepositoryName
impl RepositoryName
pub fn new(value: impl AsRef<str>) -> Result<RepositoryName, DistributionError>
pub fn new(value: impl AsRef<str>) -> Result<RepositoryName, DistributionError>
Creates a repository name.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the repository and returns the owned string.
Trait Implementations§
§impl Clone for RepositoryName
impl Clone for RepositoryName
§fn clone(&self) -> RepositoryName
fn clone(&self) -> RepositoryName
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 RepositoryName
impl Debug for RepositoryName
§impl Display for RepositoryName
impl Display for RepositoryName
§impl FromStr for RepositoryName
impl FromStr for RepositoryName
§impl Hash for RepositoryName
impl Hash for RepositoryName
§impl Ord for RepositoryName
impl Ord for RepositoryName
§impl PartialEq for RepositoryName
impl PartialEq for RepositoryName
§impl PartialOrd for RepositoryName
impl PartialOrd for RepositoryName
impl Eq for RepositoryName
impl StructuralPartialEq for RepositoryName
Auto Trait Implementations§
impl Freeze for RepositoryName
impl RefUnwindSafe for RepositoryName
impl Send for RepositoryName
impl Sync for RepositoryName
impl Unpin for RepositoryName
impl UnsafeUnpin for RepositoryName
impl UnwindSafe for RepositoryName
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