#[non_exhaustive]pub struct ValidationFlavour {
pub family: Identifier,
pub part: NonZeroU32,
pub conformance: Identifier,
}Expand description
Validation flavour identifier.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.family: IdentifierPDF family, such as pdfa.
part: NonZeroU32Part number, such as 1.
conformance: IdentifierConformance level, such as b.
Implementations§
Source§impl ValidationFlavour
impl ValidationFlavour
Sourcepub fn new(
family: impl Into<String>,
part: NonZeroU32,
conformance: impl Into<String>,
) -> Result<Self, ConfigError>
pub fn new( family: impl Into<String>, part: NonZeroU32, conformance: impl Into<String>, ) -> Result<Self, ConfigError>
Creates a validation flavour.
§Errors
Returns ConfigError when identifier fields violate the identifier policy.
Trait Implementations§
Source§impl Clone for ValidationFlavour
impl Clone for ValidationFlavour
Source§fn clone(&self) -> ValidationFlavour
fn clone(&self) -> ValidationFlavour
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 ValidationFlavour
impl Debug for ValidationFlavour
Source§impl<'de> Deserialize<'de> for ValidationFlavour
impl<'de> Deserialize<'de> for ValidationFlavour
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ValidationFlavour
impl Hash for ValidationFlavour
Source§impl PartialEq for ValidationFlavour
impl PartialEq for ValidationFlavour
Source§fn eq(&self, other: &ValidationFlavour) -> bool
fn eq(&self, other: &ValidationFlavour) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidationFlavour
impl Serialize for ValidationFlavour
impl Eq for ValidationFlavour
impl StructuralPartialEq for ValidationFlavour
Auto Trait Implementations§
impl Freeze for ValidationFlavour
impl RefUnwindSafe for ValidationFlavour
impl Send for ValidationFlavour
impl Sync for ValidationFlavour
impl Unpin for ValidationFlavour
impl UnsafeUnpin for ValidationFlavour
impl UnwindSafe for ValidationFlavour
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