#[non_exhaustive]pub enum XmpFact {
PacketParsed {
bytes: u64,
namespaces: u64,
claims: u64,
},
MissingPacketWrapper,
FlavourClaim {
family: Identifier,
display_flavour: BoundedText,
namespace_uri: BoundedText,
},
Malformed {
reason: BoundedText,
},
HostileXmlRejected {
reason: BoundedText,
},
}Expand description
XMP metadata parser fact.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PacketParsed
XMP packet was extracted and parsed.
Fields
MissingPacketWrapper
XMP packet wrapper was absent.
FlavourClaim
Recognized XMP flavour claim.
Fields
§
family: IdentifierFlavour family.
§
display_flavour: BoundedTextProfile display spelling.
§
namespace_uri: BoundedTextNamespace URI that supplied the claim.
Malformed
XMP XML was malformed or unsupported.
Fields
§
reason: BoundedTextBounded reason string.
HostileXmlRejected
DTD or entity processing was rejected.
Fields
§
reason: BoundedTextBounded reason string.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XmpFact
impl<'de> Deserialize<'de> for XmpFact
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
impl Eq for XmpFact
impl StructuralPartialEq for XmpFact
Auto Trait Implementations§
impl Freeze for XmpFact
impl RefUnwindSafe for XmpFact
impl Send for XmpFact
impl Sync for XmpFact
impl Unpin for XmpFact
impl UnsafeUnpin for XmpFact
impl UnwindSafe for XmpFact
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