#[non_exhaustive]pub struct YdbIssue {
pub issue_code: u32,
pub message: String,
pub issues: Vec<YdbIssue>,
pub severity: YdbIssueSeverity,
}
Expand description
Describe issue from server
Messages and codes doesn’t have stable gurantee. But codes more stable. If you want detect some errors prefer code over text parse. Messages for human usage only.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.issue_code: u32
§message: String
§issues: Vec<YdbIssue>
Recursive issues, explained current problems
severity: YdbIssueSeverity
Severity of the issue. For get numeric code - use convert to u32.
let mut issue = YdbIssue::default();
issue.severity = YdbIssueSeverity::Warning;
assert_eq!(u32::from(issue.severity), 2);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for YdbIssue
impl RefUnwindSafe for YdbIssue
impl Send for YdbIssue
impl Sync for YdbIssue
impl Unpin for YdbIssue
impl UnwindSafe for YdbIssue
Blanket Implementations§
Source§impl<T> Any for T
impl<T> Any for T
Source§fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove
Any::type_id_compat and use StdAny::type_id instead.
https://github.com/rust-lang/rust/issues/27745
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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