pub struct PackageListing<Str = CompactString> {
pub category: Str,
pub items: Vec<Str>,
}
Fields§
§category: Str
§items: Vec<Str>
Implementations§
Source§impl PackageListing<CompactString>
impl PackageListing<CompactString>
pub fn from_rc_dom(dom: RcDom) -> Result<Self, PackageListingFromRcDomError>
Source§impl PackageListing<CompactString>
impl PackageListing<CompactString>
pub fn from_xml_node( node: &Node, ) -> Result<Self, PackageListingFromXmlNodeError>
Trait Implementations§
Source§impl<Str: Clone> Clone for PackageListing<Str>
impl<Str: Clone> Clone for PackageListing<Str>
Source§fn clone(&self) -> PackageListing<Str>
fn clone(&self) -> PackageListing<Str>
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<Str: Debug> Debug for PackageListing<Str>
impl<Str: Debug> Debug for PackageListing<Str>
Source§impl<Str: Hash> Hash for PackageListing<Str>
impl<Str: Hash> Hash for PackageListing<Str>
Source§impl<Str: Ord> Ord for PackageListing<Str>
impl<Str: Ord> Ord for PackageListing<Str>
Source§fn cmp(&self, other: &PackageListing<Str>) -> Ordering
fn cmp(&self, other: &PackageListing<Str>) -> 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<Str: PartialEq> PartialEq for PackageListing<Str>
impl<Str: PartialEq> PartialEq for PackageListing<Str>
Source§impl<Str: PartialOrd> PartialOrd for PackageListing<Str>
impl<Str: PartialOrd> PartialOrd for PackageListing<Str>
impl<Str: Eq> Eq for PackageListing<Str>
impl<Str> StructuralPartialEq for PackageListing<Str>
Auto Trait Implementations§
impl<Str> Freeze for PackageListing<Str>where
Str: Freeze,
impl<Str> RefUnwindSafe for PackageListing<Str>where
Str: RefUnwindSafe,
impl<Str> Send for PackageListing<Str>where
Str: Send,
impl<Str> Sync for PackageListing<Str>where
Str: Sync,
impl<Str> Unpin for PackageListing<Str>where
Str: Unpin,
impl<Str> UnwindSafe for PackageListing<Str>where
Str: UnwindSafe,
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