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