pub struct BoundedDiagnosticCause { /* private fields */ }Expand description
Fixed source facts. Static codes must come from the component’s closed mapping.
Implementations§
Source§impl BoundedDiagnosticCause
impl BoundedDiagnosticCause
pub fn new(stage: DiagnosticStage, code: DiagnosticCode) -> Self
pub fn with_system(self, kind: DiagnosticCode, os: Option<i32>) -> Self
pub fn with_database_code(self, code: u32) -> Self
pub fn with_sqlstate(self, state: &str) -> Self
pub fn with_column(self, index: Option<u64>, count: Option<u64>) -> Self
pub fn with_types( self, target: Option<InlineDiagnosticText>, actual: Option<InlineDiagnosticText>, unavailable: Option<DiagnosticFactUnavailable>, ) -> Self
pub fn with_object(self, object: InlineDiagnosticText) -> Self
Trait Implementations§
Source§impl Clone for BoundedDiagnosticCause
impl Clone for BoundedDiagnosticCause
Source§fn clone(&self) -> BoundedDiagnosticCause
fn clone(&self) -> BoundedDiagnosticCause
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 moreimpl Copy for BoundedDiagnosticCause
Auto Trait Implementations§
impl Freeze for BoundedDiagnosticCause
impl RefUnwindSafe for BoundedDiagnosticCause
impl Send for BoundedDiagnosticCause
impl Sync for BoundedDiagnosticCause
impl Unpin for BoundedDiagnosticCause
impl UnsafeUnpin for BoundedDiagnosticCause
impl UnwindSafe for BoundedDiagnosticCause
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