pub struct Module {Show 16 fields
pub id: Component,
pub sync: Option<Component>,
pub parent: Option<Component>,
pub name: String,
pub description: String,
pub download_url: String,
pub category: Category,
pub installed_size: u64,
pub download_size: u64,
pub visible: bool,
pub selected: bool,
pub cmd: Option<String>,
pub checksum: Option<MD5>,
pub eula_url_1: Option<String>,
pub eula_label_1: Option<String>,
pub eula_message: Option<String>,
/* private fields */
}
Fields
id: Component
sync: Option<Component>
parent: Option<Component>
name: String
description: String
download_url: String
category: Category
installed_size: u64
download_size: u64
visible: bool
selected: bool
cmd: Option<String>
checksum: Option<MD5>
eula_url_1: Option<String>
eula_label_1: Option<String>
eula_message: Option<String>
Implementations
sourceimpl Module
impl Module
pub fn install_rename_from<P: AsRef<Path>>(&self, base_dir: P) -> Option<PathBuf>
pub fn install_rename_to<P: AsRef<Path>>(&self, base_dir: P) -> Option<PathBuf>
pub fn install_rename_from_to<P: AsRef<Path>>(
&self,
base_dir: P
) -> Option<(PathBuf, PathBuf)>
pub fn install_destination<P: AsRef<Path>>(&self, base_dir: P) -> Option<PathBuf>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Modulewhere
Module: Default,
impl<'de> Deserialize<'de> for Modulewhere
Module: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromIterator<Module> for Modules
impl FromIterator<Module> for Modules
sourcefn from_iter<I: IntoIterator<Item = Module>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Module>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl FromIterator<Module> for ModulesMap
impl FromIterator<Module> for ModulesMap
sourcefn from_iter<I: IntoIterator<Item = Module>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Module>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl Ord for Module
impl Ord for Module
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Module> for Module
impl PartialOrd<Module> for Module
sourcefn partial_cmp(&self, other: &Module) -> Option<Ordering>
fn partial_cmp(&self, other: &Module) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Module
impl StructuralEq for Module
Auto Trait Implementations
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.