Struct fuchsia_url::RepositoryUrl
source · 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<RepositoryUrl> for RepositoryUrl
impl PartialEq<RepositoryUrl> for RepositoryUrl
source§fn eq(&self, other: &RepositoryUrl) -> bool
fn eq(&self, other: &RepositoryUrl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RepositoryUrl> for RepositoryUrl
impl PartialOrd<RepositoryUrl> for RepositoryUrl
source§fn partial_cmp(&self, other: &RepositoryUrl) -> Option<Ordering>
fn partial_cmp(&self, other: &RepositoryUrl) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more