Struct apple_flat_package::distribution::Distribution
source · pub struct Distribution {Show 17 fields
pub min_spec_version: u8,
pub background: Option<Background>,
pub choice: Vec<Choice>,
pub choices_outline: ChoicesOutline,
pub conclusion: Option<Conclusion>,
pub domains: Option<Domains>,
pub installation_check: Option<InstallationCheck>,
pub license: Option<License>,
pub locator: Vec<Locator>,
pub options: Option<Options>,
pub pkg_ref: Vec<PkgRef>,
pub product: Option<Product>,
pub readme: Option<Readme>,
pub script: Option<Script>,
pub title: Option<Title>,
pub volume_check: Option<VolumeCheck>,
pub welcome: Option<Welcome>,
}
Expand description
Represents a distribution XML file.
Fields§
§min_spec_version: u8
§background: Option<Background>
§choice: Vec<Choice>
§choices_outline: ChoicesOutline
§conclusion: Option<Conclusion>
§domains: Option<Domains>
§installation_check: Option<InstallationCheck>
§license: Option<License>
§locator: Vec<Locator>
§options: Option<Options>
§pkg_ref: Vec<PkgRef>
§product: Option<Product>
§readme: Option<Readme>
§script: Option<Script>
§title: Option<Title>
§volume_check: Option<VolumeCheck>
§welcome: Option<Welcome>
Implementations§
Trait Implementations§
source§impl Clone for Distribution
impl Clone for Distribution
source§fn clone(&self) -> Distribution
fn clone(&self) -> Distribution
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 Distribution
impl Debug for Distribution
source§impl<'de> Deserialize<'de> for Distribution
impl<'de> Deserialize<'de> for Distribution
source§fn 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
source§impl PartialEq for Distribution
impl PartialEq for Distribution
source§fn eq(&self, other: &Distribution) -> bool
fn eq(&self, other: &Distribution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Distribution
impl Serialize for Distribution
impl Eq for Distribution
impl StructuralEq for Distribution
impl StructuralPartialEq for Distribution
Auto Trait Implementations§
impl RefUnwindSafe for Distribution
impl Send for Distribution
impl Sync for Distribution
impl Unpin for Distribution
impl UnwindSafe for Distribution
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.