pub enum Admission {
Admitted,
Unverified {
using: Grammar,
},
Residual,
Refused,
}Expand description
How one format layer admitted, or refused, one document.
Identity and admission are orthogonal: a document can carry a registry row
of its own while its bytes are read with another grammar, and a damaged
frame can retain its identity while applying that row’s grammar
unverified. The grammar name is local to the owning DialectMatch’s
format namespace.
Variants§
Admitted
Parsed with the strategy declared for the identified dialect.
Unverified
Parsed with another declared grammar of the same format namespace.
The codec must charge its dialect-unverified loss.
Residual
Parsed without any declared grammar: the residual path.
The codec must charge its dialect-unverified loss.
Refused
Structurally identified; semantic decode refused.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Admission
impl<'de> Deserialize<'de> for Admission
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 Admission
impl StructuralPartialEq for Admission
Auto Trait Implementations§
impl Freeze for Admission
impl RefUnwindSafe for Admission
impl Send for Admission
impl Sync for Admission
impl Unpin for Admission
impl UnsafeUnpin for Admission
impl UnwindSafe for Admission
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