pub struct Schema<A, I, E = ()> { /* private fields */ }Expand description
Bidirectional schema: semantic A, wire/intermediate I, phantom E (EffectData tag).
Implementations§
Source§impl<A, I, E> Schema<A, I, E>
impl<A, I, E> Schema<A, I, E>
Sourcepub fn decode(&self, input: I) -> Result<A, ParseError>
pub fn decode(&self, input: I) -> Result<A, ParseError>
Decode wire value input to A.
Sourcepub fn decode_unknown(&self, input: &Unknown) -> Result<A, ParseError>
pub fn decode_unknown(&self, input: &Unknown) -> Result<A, ParseError>
Decode from dynamic Unknown (e.g. config trees).
Source§impl<A: 'static, I: 'static, E: EffectData + 'static> Schema<A, I, E>
impl<A: 'static, I: 'static, E: EffectData + 'static> Schema<A, I, E>
Trait Implementations§
Auto Trait Implementations§
impl<A, I, E = ()> !RefUnwindSafe for Schema<A, I, E>
impl<A, I, E = ()> !UnwindSafe for Schema<A, I, E>
impl<A, I, E> Freeze for Schema<A, I, E>
impl<A, I, E> Send for Schema<A, I, E>
impl<A, I, E> Sync for Schema<A, I, E>
impl<A, I, E> Unpin for Schema<A, I, E>
impl<A, I, E> UnsafeUnpin for Schema<A, I, E>
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
impl<T> Capability for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more