Struct apple_xar::table_of_contents::XarToC
source · pub struct XarToC {
pub creation_time: String,
pub checksum: Checksum,
pub files: Vec<File>,
pub signature: Option<Signature>,
pub x_signature: Option<Signature>,
}
Expand description
The main data structure inside a table of contents.
Fields§
§creation_time: String
§checksum: Checksum
§files: Vec<File>
§signature: Option<Signature>
§x_signature: Option<Signature>
Implementations§
source§impl XarToC
impl XarToC
sourcepub fn signatures(&self) -> Vec<&Signature>
pub fn signatures(&self) -> Vec<&Signature>
Signatures present in the table of contents.
sourcepub fn find_signature(&self, style: SignatureStyle) -> Option<&Signature>
pub fn find_signature(&self, style: SignatureStyle) -> Option<&Signature>
Attempt to find a signature given a signature style.
pub fn visit_files_mut(&mut self, cb: &dyn Fn(&mut File))
Trait Implementations§
source§impl<'de> Deserialize<'de> for XarToC
impl<'de> Deserialize<'de> for XarToC
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
Auto Trait Implementations§
impl RefUnwindSafe for XarToC
impl Send for XarToC
impl Sync for XarToC
impl Unpin for XarToC
impl UnwindSafe for XarToC
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