pub enum FuchsiaPkgPackageUrl {
Absolute(FuchsiaPkgAbsolutePackageUrl),
Relative(RelativePackageUrl),
}Expand description
A URL locating a Fuchsia package. Can be either absolute or relative.
See FuchsiaPkgAbsolutePackageUrl and RelativePackageUrl for more details.
https://fuchsia.dev/fuchsia-src/concepts/packages/package_url
Variants§
Absolute(FuchsiaPkgAbsolutePackageUrl)
Relative(RelativePackageUrl)
Implementations§
Source§impl FuchsiaPkgPackageUrl
impl FuchsiaPkgPackageUrl
Sourcepub fn parse(url: &str) -> Result<Self, ParseError>
pub fn parse(url: &str) -> Result<Self, ParseError>
Parse a package URL.
Trait Implementations§
Source§impl Clone for FuchsiaPkgPackageUrl
impl Clone for FuchsiaPkgPackageUrl
Source§fn clone(&self) -> FuchsiaPkgPackageUrl
fn clone(&self) -> FuchsiaPkgPackageUrl
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 moreSource§impl Debug for FuchsiaPkgPackageUrl
impl Debug for FuchsiaPkgPackageUrl
Source§impl<'de> Deserialize<'de> for FuchsiaPkgPackageUrl
impl<'de> Deserialize<'de> for FuchsiaPkgPackageUrl
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 FuchsiaPkgPackageUrl
impl Display for FuchsiaPkgPackageUrl
Source§impl From<FuchsiaPkgAbsolutePackageUrl> for FuchsiaPkgPackageUrl
impl From<FuchsiaPkgAbsolutePackageUrl> for FuchsiaPkgPackageUrl
Source§fn from(absolute: FuchsiaPkgAbsolutePackageUrl) -> Self
fn from(absolute: FuchsiaPkgAbsolutePackageUrl) -> Self
Converts to this type from the input type.
Source§impl From<RelativePackageUrl> for FuchsiaPkgPackageUrl
impl From<RelativePackageUrl> for FuchsiaPkgPackageUrl
Source§fn from(relative: RelativePackageUrl) -> Self
fn from(relative: RelativePackageUrl) -> Self
Converts to this type from the input type.
Source§impl FromStr for FuchsiaPkgPackageUrl
impl FromStr for FuchsiaPkgPackageUrl
Source§impl Hash for FuchsiaPkgPackageUrl
impl Hash for FuchsiaPkgPackageUrl
Source§impl Ord for FuchsiaPkgPackageUrl
impl Ord for FuchsiaPkgPackageUrl
Source§fn cmp(&self, other: &FuchsiaPkgPackageUrl) -> Ordering
fn cmp(&self, other: &FuchsiaPkgPackageUrl) -> 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 FuchsiaPkgPackageUrl
impl PartialEq for FuchsiaPkgPackageUrl
Source§impl PartialOrd for FuchsiaPkgPackageUrl
impl PartialOrd for FuchsiaPkgPackageUrl
Source§impl Serialize for FuchsiaPkgPackageUrl
impl Serialize for FuchsiaPkgPackageUrl
Source§impl TryFrom<&str> for FuchsiaPkgPackageUrl
impl TryFrom<&str> for FuchsiaPkgPackageUrl
impl Eq for FuchsiaPkgPackageUrl
impl StructuralPartialEq for FuchsiaPkgPackageUrl
Auto Trait Implementations§
impl Freeze for FuchsiaPkgPackageUrl
impl RefUnwindSafe for FuchsiaPkgPackageUrl
impl Send for FuchsiaPkgPackageUrl
impl Sync for FuchsiaPkgPackageUrl
impl Unpin for FuchsiaPkgPackageUrl
impl UnwindSafe for FuchsiaPkgPackageUrl
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