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 Freeze for XarToC
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)