pub enum GeneratorData {
Decrypted(ProvenanceMarkGenerator),
Encrypted(Envelope),
}Expand description
Provenance mark generator data that can be either decrypted or encrypted.
Variants§
Decrypted(ProvenanceMarkGenerator)
Decrypted generator that can be used for mark generation.
Encrypted(Envelope)
Encrypted generator envelope that cannot be used without decryption. This preserves the encrypted assertion when a document is loaded without the decryption password.
Note: Envelope uses internal reference counting (Rc/Arc) so cloning is cheap - no need for additional wrapper.
Trait Implementations§
Source§impl Clone for GeneratorData
impl Clone for GeneratorData
Source§fn clone(&self) -> GeneratorData
fn clone(&self) -> GeneratorData
Returns a duplicate 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 GeneratorData
impl Debug for GeneratorData
Source§impl PartialEq for GeneratorData
impl PartialEq for GeneratorData
impl Eq for GeneratorData
Auto Trait Implementations§
impl Freeze for GeneratorData
impl RefUnwindSafe for GeneratorData
impl Send for GeneratorData
impl Sync for GeneratorData
impl Unpin for GeneratorData
impl UnwindSafe for GeneratorData
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more