Skip to main content

A3IssueCode

Enum A3IssueCode 

Source
pub enum A3IssueCode {
Show 37 variants DocNotObject, EnvelopeSchemaMissing, EnvelopeSchemaMismatch, EnvelopeVersionMissing, EnvelopeVersionMismatch, UnknownField, SeqMissing, SeqNotString, SeqTooShort, SeqCharset, AnnotationsNotObject, MetadataNotObject, MetadataFieldNotString, FamilyNotObject, VariantListNotArray, NameEmpty, EntryNotObject, EntryTypeNotString, IndexMissing, IndexNotArray, IndexElementType, IndexMixed, RangeArity, RangeEndpointNotInteger, VariantNotObject, VariantPositionMissing, VariantPositionNotInteger, PosNotPositive, PosDuplicate, RangeEndpointNotPositive, RangeOrder, RangeOverlap, VariantPositionNotPositive, PosOutOfBounds, RangeOutOfBounds, VariantOutOfBounds, VariantResidueMismatch,
}
Expand description

A stable, machine-readable validation issue code.

Codes are never renumbered and never reused. See spec/error-codes.md for the full registry.

Variants§

§

DocNotObject

A3E_DOC_NOT_OBJECT

§

EnvelopeSchemaMissing

A3E_ENVELOPE_SCHEMA_MISSING

§

EnvelopeSchemaMismatch

A3E_ENVELOPE_SCHEMA_MISMATCH

§

EnvelopeVersionMissing

A3E_ENVELOPE_VERSION_MISSING

§

EnvelopeVersionMismatch

A3E_ENVELOPE_VERSION_MISMATCH

§

UnknownField

A3E_UNKNOWN_FIELD

§

SeqMissing

A3E_SEQ_MISSING

§

SeqNotString

A3E_SEQ_NOT_STRING

§

SeqTooShort

A3E_SEQ_TOO_SHORT

§

SeqCharset

A3E_SEQ_CHARSET

§

AnnotationsNotObject

A3E_ANNOTATIONS_NOT_OBJECT

§

MetadataNotObject

A3E_METADATA_NOT_OBJECT

§

MetadataFieldNotString

A3E_METADATA_FIELD_NOT_STRING

§

FamilyNotObject

A3E_FAMILY_NOT_OBJECT

§

VariantListNotArray

A3E_VARIANT_LIST_NOT_ARRAY

§

NameEmpty

A3E_NAME_EMPTY

§

EntryNotObject

A3E_ENTRY_NOT_OBJECT

§

EntryTypeNotString

A3E_ENTRY_TYPE_NOT_STRING

§

IndexMissing

A3E_INDEX_MISSING

§

IndexNotArray

A3E_INDEX_NOT_ARRAY

§

IndexElementType

A3E_INDEX_ELEMENT_TYPE

§

IndexMixed

A3E_INDEX_MIXED

§

RangeArity

A3E_RANGE_ARITY

§

RangeEndpointNotInteger

A3E_RANGE_ENDPOINT_NOT_INTEGER

§

VariantNotObject

A3E_VARIANT_NOT_OBJECT

§

VariantPositionMissing

A3E_VARIANT_POSITION_MISSING

§

VariantPositionNotInteger

A3E_VARIANT_POSITION_NOT_INTEGER

§

PosNotPositive

A3E_POS_NOT_POSITIVE

§

PosDuplicate

A3E_POS_DUPLICATE

§

RangeEndpointNotPositive

A3E_RANGE_ENDPOINT_NOT_POSITIVE

§

RangeOrder

A3E_RANGE_ORDER

§

RangeOverlap

A3E_RANGE_OVERLAP

§

VariantPositionNotPositive

A3E_VARIANT_POSITION_NOT_POSITIVE

§

PosOutOfBounds

A3E_POS_OUT_OF_BOUNDS

§

RangeOutOfBounds

A3E_RANGE_OUT_OF_BOUNDS

§

VariantOutOfBounds

A3E_VARIANT_OUT_OF_BOUNDS

§

VariantResidueMismatch

A3E_VARIANT_RESIDUE_MISMATCH

Implementations§

Source§

impl A3IssueCode

Source

pub const ALL: &'static [A3IssueCode]

Every code in the registry, for coverage checks.

Source

pub fn code(self) -> &'static str

The code’s stable wire string, e.g. "A3E_SEQ_TOO_SHORT".

Source

pub fn stage(self) -> u8

The validation stage this code belongs to (1–4).

Trait Implementations§

Source§

impl Clone for A3IssueCode

Source§

fn clone(&self) -> A3IssueCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for A3IssueCode

Source§

impl Debug for A3IssueCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for A3IssueCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for A3IssueCode

Source§

impl Hash for A3IssueCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for A3IssueCode

Source§

fn eq(&self, other: &A3IssueCode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for A3IssueCode

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for A3IssueCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.