[−][src]Struct appstream::Collection
A collection is a wrapper around multiple components at once. Provided by the source of the components (a repository). See Collection Metadata.
Fields
version: String
The specification version used on the components.
origin: Option<String>
The origin of the collection, could be something like flathub
.
components: Vec<Component>
The components that are part of this collection.
architecture: Option<String>
The targeted CPU architecture of the collection.
Implementations
impl Collection
[src]
pub fn from_path(path: PathBuf) -> Result<Self, ParseError>
[src]
pub fn find_by_id(&self, id: AppId) -> Vec<&Component>
[src]
Find the components that corresponds to a specific AppId
Trait Implementations
impl Clone for Collection
[src]
fn clone(&self) -> Collection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Collection
[src]
impl<'de> Deserialize<'de> for Collection
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Collection> for Collection
[src]
fn eq(&self, other: &Collection) -> bool
[src]
fn ne(&self, other: &Collection) -> bool
[src]
impl Serialize for Collection
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Collection
[src]
impl<'_> TryFrom<&'_ Element> for Collection
[src]
Auto Trait Implementations
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,