pub struct SchemaDiagnostics(/* private fields */);Expand description
One or more schema diagnostics produced by a fail-closed operation.
Implementations§
Source§impl SchemaDiagnostics
impl SchemaDiagnostics
Sourcepub fn one(diagnostic: SchemaDiagnostic) -> Self
pub fn one(diagnostic: SchemaDiagnostic) -> Self
Construct a non-empty diagnostic collection.
Sourcepub fn from_vec(diagnostics: Vec<SchemaDiagnostic>) -> Self
pub fn from_vec(diagnostics: Vec<SchemaDiagnostic>) -> Self
Construct a diagnostic collection from accumulated errors.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &SchemaDiagnostic>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &SchemaDiagnostic>
Return all diagnostics in stable order.
Sourcepub fn into_vec(self) -> Vec<SchemaDiagnostic>
pub fn into_vec(self) -> Vec<SchemaDiagnostic>
Consume the collection.
Trait Implementations§
Source§impl Clone for SchemaDiagnostics
impl Clone for SchemaDiagnostics
Source§fn clone(&self) -> SchemaDiagnostics
fn clone(&self) -> SchemaDiagnostics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaDiagnostics
impl Debug for SchemaDiagnostics
Source§impl Display for SchemaDiagnostics
impl Display for SchemaDiagnostics
impl Eq for SchemaDiagnostics
Source§impl Error for SchemaDiagnostics
impl Error for SchemaDiagnostics
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SchemaDiagnostics
impl PartialEq for SchemaDiagnostics
impl StructuralPartialEq for SchemaDiagnostics
Auto Trait Implementations§
impl Freeze for SchemaDiagnostics
impl RefUnwindSafe for SchemaDiagnostics
impl Send for SchemaDiagnostics
impl Sync for SchemaDiagnostics
impl Unpin for SchemaDiagnostics
impl UnsafeUnpin for SchemaDiagnostics
impl UnwindSafe for SchemaDiagnostics
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