pub struct ValidatorSchemaFragment(/* private fields */);
Implementations§
source§impl ValidatorSchemaFragment
impl ValidatorSchemaFragment
pub fn from_namespaces( namespaces: impl IntoIterator<Item = ValidatorNamespaceDef>, ) -> Self
pub fn from_schema_fragment( fragment: SchemaFragment, action_behavior: ActionBehavior, ) -> Result<Self>
sourcepub fn namespaces(&self) -> impl Iterator<Item = &Option<Name>>
pub fn namespaces(&self) -> impl Iterator<Item = &Option<Name>>
Access the Name
s for the namespaces in this fragment.
Trait Implementations§
source§impl Debug for ValidatorSchemaFragment
impl Debug for ValidatorSchemaFragment
source§impl TryInto<ValidatorSchemaFragment> for SchemaFragment
impl TryInto<ValidatorSchemaFragment> for SchemaFragment
source§type Error = SchemaError
type Error = SchemaError
The type returned in the event of a conversion error.
source§fn try_into(self) -> Result<ValidatorSchemaFragment>
fn try_into(self) -> Result<ValidatorSchemaFragment>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ValidatorSchemaFragment
impl !RefUnwindSafe for ValidatorSchemaFragment
impl !Send for ValidatorSchemaFragment
impl !Sync for ValidatorSchemaFragment
impl Unpin for ValidatorSchemaFragment
impl !UnwindSafe for ValidatorSchemaFragment
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
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