pub struct CollectionBuilder {
pub version: String,
pub origin: Option<String>,
pub components: Vec<Component>,
pub architecture: Option<String>,
}Expand description
A helper to build a Collection.
Fields§
§version: StringThe specification version used on this collection of components.
origin: Option<String>The origin of the collection. Could be something like flathub.
components: Vec<Component>The list of components on that collection.
architecture: Option<String>The targeted CPU architecture of the collection.
Implementations§
Source§impl CollectionBuilder
impl CollectionBuilder
Sourcepub fn new(version: &str) -> Self
pub fn new(version: &str) -> Self
Create a new CollectionBuilder.
§Arguments
version- The specification version used on the collection.
Sourcepub fn architecture(self, architecture: &str) -> Self
pub fn architecture(self, architecture: &str) -> Self
Specifies the targeted architecture.
Sourcepub fn build(self) -> Collection
pub fn build(self) -> Collection
Construct a Collection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CollectionBuilder
impl RefUnwindSafe for CollectionBuilder
impl Send for CollectionBuilder
impl Sync for CollectionBuilder
impl Unpin for CollectionBuilder
impl UnwindSafe for CollectionBuilder
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