pub enum StampName {
Show 15 variants
Approved,
Experimental,
NotApproved,
AsIs,
Expired,
NotForPublicRelease,
Confidential,
Final,
Sold,
Departmental,
ForComment,
TopSecret,
Draft,
ForPublicRelease,
Custom(String),
}Expand description
Standard rubber-stamp names per ISO 32000-2 Table 181.
Used for both reading (parser output) and writing (annotation builder).
PDF viewers ship built-in appearances for the standard variants; using
a recognized name produces consistent visuals across viewers. A
non-standard name is preserved verbatim in Self::Custom so it is
never silently lost. Self::to_pdf_name converts back to the PDF
name string for the write path.
Variants§
Approved
“APPROVED” — green check-style stamp.
Experimental
“EXPERIMENTAL” — orange/red stamp.
NotApproved
“NOT APPROVED” — red rejection-style stamp.
AsIs
“AS IS” — neutral stamp meaning “submitted without warranty”.
Expired
“EXPIRED” — red stamp indicating a document has lapsed.
NotForPublicRelease
“NOT FOR PUBLIC RELEASE” — red restriction stamp.
Confidential
“CONFIDENTIAL” — red restriction stamp for sensitive material.
Final
“FINAL” — green completion stamp.
Sold
“SOLD” — typically used in real-estate or auction contexts.
Departmental
“DEPARTMENTAL” — internal-use restriction stamp.
ForComment
“FOR COMMENT” — review-cycle stamp.
TopSecret
“TOP SECRET” — strongest standard restriction stamp.
Draft
“DRAFT” — work-in-progress stamp. Also the fallback default
when no /Name entry is present on the input annotation.
ForPublicRelease
“FOR PUBLIC RELEASE” — explicit clearance stamp.
Custom(String)
Any non-standard stamp name found in the input PDF, preserved verbatim. Custom stamps may render with viewer-default appearance only.
Implementations§
Trait Implementations§
impl Eq for StampName
impl StructuralPartialEq for StampName
Auto Trait Implementations§
impl Freeze for StampName
impl RefUnwindSafe for StampName
impl Send for StampName
impl Sync for StampName
impl Unpin for StampName
impl UnsafeUnpin for StampName
impl UnwindSafe for StampName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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