pub struct Signature {
pub filter: String,
pub sub_filter: String,
pub name: Option<String>,
pub reason: Option<String>,
pub location: Option<String>,
pub time: Option<Date>,
pub byte_range: Vec<(u64, u64)>,
pub contents: Vec<u8>,
pub covers_file: bool,
}Expand description
a field’s signature as the file states it (12.8): the signature is not verified
Fields§
§filter: String/Filter and /SubFilter: Adobe.PPKLite, adbe.pkcs7.detached, ETSI.CAdES.detached, …
sub_filter: String§name: Option<String>/Name, /Reason, /Location, /ContactInfo as given
reason: Option<String>§location: Option<String>§time: Option<Date>§byte_range: Vec<(u64, u64)>the byte ranges of the file the signature covers: (start, length) pairs
contents: Vec<u8>the signature (a PKCS #7 / CMS structure for the usual kinds)
covers_file: boolthe ranges cover the whole file but the signature itself (later changes make it false)
Trait Implementations§
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Forget for Signature
impl Freeze for Signature
impl Move for Signature
impl RefUnwindSafe for Signature
impl Send for Signaturewhere
RawVecInner: Send,
impl Sync for Signaturewhere
RawVecInner: Sync,
impl Unpin for Signature
impl UnsafeUnpin for Signaturewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(u64, u64)>: UnsafeUnpin,
impl UnwindSafe for Signaturewhere
RawVecInner: UnwindSafe,
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