pub struct RepositoryUrl { /* private fields */ }
Expand description
A URL locating a Fuchsia package repository.
Has the form “fuchsia-pkg://
Implementations§
Source§impl RepositoryUrl
impl RepositoryUrl
Sourcepub fn parse_host(host: String) -> Result<Self, ParseError>
pub fn parse_host(host: String) -> Result<Self, ParseError>
Returns an error if the provided hostname does not comply to the package URL spec: https://fuchsia.dev/fuchsia-src/concepts/packages/package_url#repository Contains only lowercase ascii letters, digits, a hyphen or the dot delimiter.
Sourcepub fn parse(url: &str) -> Result<Self, ParseError>
pub fn parse(url: &str) -> Result<Self, ParseError>
Parse a “fuchsia-pkg://” URL that locates a package repository.
Trait Implementations§
Source§impl Clone for RepositoryUrl
impl Clone for RepositoryUrl
Source§fn clone(&self) -> RepositoryUrl
fn clone(&self) -> RepositoryUrl
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 RepositoryUrl
impl Debug for RepositoryUrl
Source§impl<'de> Deserialize<'de> for RepositoryUrl
impl<'de> Deserialize<'de> for RepositoryUrl
Source§fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RepositoryUrl
impl Display for RepositoryUrl
Source§impl FromStr for RepositoryUrl
impl FromStr for RepositoryUrl
Source§impl Hash for RepositoryUrl
impl Hash for RepositoryUrl
Source§impl Ord for RepositoryUrl
impl Ord for RepositoryUrl
Source§fn cmp(&self, other: &RepositoryUrl) -> Ordering
fn cmp(&self, other: &RepositoryUrl) -> Ordering
1.21.0 · 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 RepositoryUrl
impl PartialEq for RepositoryUrl
Source§impl PartialOrd for RepositoryUrl
impl PartialOrd for RepositoryUrl
Source§impl Serialize for RepositoryUrl
impl Serialize for RepositoryUrl
Source§impl TryFrom<&str> for RepositoryUrl
impl TryFrom<&str> for RepositoryUrl
impl Eq for RepositoryUrl
impl StructuralPartialEq for RepositoryUrl
Auto Trait Implementations§
impl Freeze for RepositoryUrl
impl RefUnwindSafe for RepositoryUrl
impl Send for RepositoryUrl
impl Sync for RepositoryUrl
impl Unpin for RepositoryUrl
impl UnwindSafe for RepositoryUrl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)