pub struct EngineCapabilities {
pub create: bool,
pub read: bool,
pub manipulate: bool,
pub fill_forms: bool,
pub encrypt: bool,
pub sign: bool,
pub pdfa: bool,
}Expand description
描述 PDF 引擎支持哪些操作。
Fields§
§create: bool可以从零创建新的 PDF 文档。
read: bool可以读取和解析现有 PDF 文档。
manipulate: bool可以操作(合并、拆分、旋转)现有 PDF。
fill_forms: bool可以填写 PDF 模板中的表单字段。
encrypt: bool支持加密。
sign: bool支持数字签名。
pdfa: bool支持 PDF/A 验证。
Implementations§
Source§impl EngineCapabilities
impl EngineCapabilities
Sourcepub const fn to_detailed(&self) -> DetailedEngineCapabilities
pub const fn to_detailed(&self) -> DetailedEngineCapabilities
转换为使用 CapabilityLevel 值的 DetailedEngineCapabilities。
布尔值 true 映射到 CapabilityLevel::Structural;
false 映射到 CapabilityLevel::None。
Trait Implementations§
Source§impl Clone for EngineCapabilities
impl Clone for EngineCapabilities
Source§fn clone(&self) -> EngineCapabilities
fn clone(&self) -> EngineCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EngineCapabilities
Source§impl Debug for EngineCapabilities
impl Debug for EngineCapabilities
Source§impl Default for EngineCapabilities
impl Default for EngineCapabilities
Source§fn default() -> EngineCapabilities
fn default() -> EngineCapabilities
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EngineCapabilities
impl RefUnwindSafe for EngineCapabilities
impl Send for EngineCapabilities
impl Sync for EngineCapabilities
impl Unpin for EngineCapabilities
impl UnsafeUnpin for EngineCapabilities
impl UnwindSafe for EngineCapabilities
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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