#[non_exhaustive]pub enum DiagnosticCode {
Show 18 variants
UnknownType,
DeprecatedType,
PendingType,
UnknownProperty,
PropertyNotForType,
DeprecatedProperty,
PendingProperty,
InvalidValueType,
ExpectedUrlGotText,
ExpectedTextGotNode,
InvalidEnumValue,
InvalidBoolean,
InvalidNumber,
RequiredFieldMissing,
RecommendedFieldMissing,
NestedRequiredFieldMissing,
InvalidFieldValue,
EligibilityRestricted,
}Expand description
Machine-readable diagnostic codes.
Each code corresponds to a specific class of validation issue. Use these for programmatic filtering and reporting.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownType
The @type value is not a known Schema.org type.
DeprecatedType
The type has been retired to attic.schema.org.
PendingType
The type is in pending.schema.org (not yet stable).
UnknownProperty
The property name is not a known Schema.org property.
PropertyNotForType
The property exists but is not valid for the given type.
DeprecatedProperty
The property has been superseded by another.
PendingProperty
The property is in pending.schema.org.
InvalidValueType
The value type does not match any expected rangeIncludes type.
ExpectedUrlGotText
A URL was expected but plain text was provided.
ExpectedTextGotNode
A text value was expected but a nested object was provided.
InvalidEnumValue
The value should be an enumeration member but is not.
InvalidBoolean
A boolean value was provided as a string ("true" / "false").
InvalidNumber
A non-numeric string was provided where a number was expected.
RequiredFieldMissing
A required field is missing (profile-specific).
RecommendedFieldMissing
A recommended field is missing (profile-specific).
NestedRequiredFieldMissing
A required field in a nested object is missing.
InvalidFieldValue
A field value does not meet profile-specific constraints.
EligibilityRestricted
Eligibility is restricted by external factors (e.g. site authority).
Trait Implementations§
Source§impl Clone for DiagnosticCode
impl Clone for DiagnosticCode
Source§fn clone(&self) -> DiagnosticCode
fn clone(&self) -> DiagnosticCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiagnosticCode
impl Debug for DiagnosticCode
Source§impl<'de> Deserialize<'de> for DiagnosticCode
impl<'de> Deserialize<'de> for DiagnosticCode
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>,
Source§impl Display for DiagnosticCode
impl Display for DiagnosticCode
Source§impl Hash for DiagnosticCode
impl Hash for DiagnosticCode
Source§impl PartialEq for DiagnosticCode
impl PartialEq for DiagnosticCode
Source§fn eq(&self, other: &DiagnosticCode) -> bool
fn eq(&self, other: &DiagnosticCode) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DiagnosticCode
impl Serialize for DiagnosticCode
impl Copy for DiagnosticCode
impl Eq for DiagnosticCode
impl StructuralPartialEq for DiagnosticCode
Auto Trait Implementations§
impl Freeze for DiagnosticCode
impl RefUnwindSafe for DiagnosticCode
impl Send for DiagnosticCode
impl Sync for DiagnosticCode
impl Unpin for DiagnosticCode
impl UnsafeUnpin for DiagnosticCode
impl UnwindSafe for DiagnosticCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.