pub struct ErrorField<'a> { /* private fields */ }Expand description
A single error or notice field.
Common field type codes:
- ‘S’: Severity
- ‘C’: Code (SQLSTATE)
- ‘M’: Message
- ‘D’: Detail
- ‘H’: Hint
- ‘P’: Position
- ‘p’: Internal position
- ‘q’: Internal query
- ‘W’: Where
- ‘s’: Schema name
- ‘t’: Table name
- ‘c’: Column name
- ‘d’: Data type name
- ‘n’: Constraint name
Implementations§
Source§impl ErrorField<'_>
impl ErrorField<'_>
Sourcepub fn value_bytes(&self) -> &[u8] ⓘ
pub fn value_bytes(&self) -> &[u8] ⓘ
Returns the field value as bytes.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ErrorField<'a>
impl<'a> RefUnwindSafe for ErrorField<'a>
impl<'a> Send for ErrorField<'a>
impl<'a> Sync for ErrorField<'a>
impl<'a> Unpin for ErrorField<'a>
impl<'a> UnsafeUnpin for ErrorField<'a>
impl<'a> UnwindSafe for ErrorField<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request