pub struct PacketValidation {
pub has_template: bool,
pub has_datasets: bool,
pub has_config: bool,
pub template_bytes: usize,
pub datasets_bytes: usize,
pub packet_names: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Summary of what was found (or missing) in a set of XfaPackets.
Returned by validate_xfa_packets. Intended for diagnostics, logging,
and deciding how to handle unusual or incomplete XFA documents.
Fields§
§has_template: booltrue when a template packet is present.
has_datasets: booltrue when at least one datasets packet is present.
has_config: booltrue when a config packet is present.
template_bytes: usizeByte length of the template packet (0 if absent).
datasets_bytes: usizeByte length of the largest datasets packet (0 if absent).
packet_names: Vec<String>Names of all packets in document order.
warnings: Vec<String>Human-readable warnings about missing or suspicious content.
Trait Implementations§
Source§impl Clone for PacketValidation
impl Clone for PacketValidation
Source§fn clone(&self) -> PacketValidation
fn clone(&self) -> PacketValidation
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 moreSource§impl Debug for PacketValidation
impl Debug for PacketValidation
Source§impl Default for PacketValidation
impl Default for PacketValidation
Source§fn default() -> PacketValidation
fn default() -> PacketValidation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PacketValidation
impl RefUnwindSafe for PacketValidation
impl Send for PacketValidation
impl Sync for PacketValidation
impl Unpin for PacketValidation
impl UnsafeUnpin for PacketValidation
impl UnwindSafe for PacketValidation
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().