pub enum StructuralRule {
DuplicateFieldNumber {
arg_index: usize,
},
PositionBounds {
action: PositionBoundsAction,
},
FontReference {
action: FontReferenceAction,
arg_index: usize,
},
MediaModes {
target: MediaModesTarget,
arg_index: usize,
},
GfDataLength {
compression_arg_index: usize,
declared_byte_count_arg_index: usize,
data_arg_index: usize,
},
GfPreflightTracking {
graphic_field_count_arg_index: usize,
bytes_per_row_arg_index: usize,
},
}Expand description
Schema-declared structural validation rule payload.
Variants§
DuplicateFieldNumber
Detect duplicate field numbers by arg value.
PositionBounds
Track/validate position bounds behavior.
Fields
§
action: PositionBoundsActionAction for this position-bounds rule.
FontReference
Register/validate font references.
Fields
§
action: FontReferenceActionAction for this font-reference rule.
MediaModes
Validate media command arguments against profile capabilities.
Fields
§
target: MediaModesTargetProfile target used for validation.
GfDataLength
Validate declared vs actual ^GF payload length.
Fields
GfPreflightTracking
Track ^GF memory usage and validate graphic bounds.
Implementations§
Source§impl StructuralRule
impl StructuralRule
Sourcepub fn kind(&self) -> StructuralRuleKind
pub fn kind(&self) -> StructuralRuleKind
Get normalized kind for this structural rule.
Trait Implementations§
Source§impl Clone for StructuralRule
impl Clone for StructuralRule
Source§fn clone(&self) -> StructuralRule
fn clone(&self) -> StructuralRule
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 StructuralRule
impl Debug for StructuralRule
Source§impl<'de> Deserialize<'de> for StructuralRule
impl<'de> Deserialize<'de> for StructuralRule
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 StructuralRule
impl Hash for StructuralRule
Source§impl PartialEq for StructuralRule
impl PartialEq for StructuralRule
Source§impl Serialize for StructuralRule
impl Serialize for StructuralRule
impl Eq for StructuralRule
impl StructuralPartialEq for StructuralRule
Auto Trait Implementations§
impl Freeze for StructuralRule
impl RefUnwindSafe for StructuralRule
impl Send for StructuralRule
impl Sync for StructuralRule
impl Unpin for StructuralRule
impl UnsafeUnpin for StructuralRule
impl UnwindSafe for StructuralRule
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