Struct oci_spec::distribution::ErrorInfoBuilder
source · pub struct ErrorInfoBuilder { /* private fields */ }
Expand description
Builder for ErrorInfo
.
Implementations§
source§impl ErrorInfoBuilder
impl ErrorInfoBuilder
sourcepub fn code<VALUE: Into<ErrorCode>>(self, value: VALUE) -> Self
pub fn code<VALUE: Into<ErrorCode>>(self, value: VALUE) -> Self
The code field MUST be a unique identifier, containing only uppercase alphabetic characters and underscores.
sourcepub fn message<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn message<VALUE: Into<String>>(self, value: VALUE) -> Self
The message field is OPTIONAL, and if present, it SHOULD be a human readable string or MAY be empty.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorInfoBuilder
impl RefUnwindSafe for ErrorInfoBuilder
impl Send for ErrorInfoBuilder
impl Sync for ErrorInfoBuilder
impl Unpin for ErrorInfoBuilder
impl UnwindSafe for ErrorInfoBuilder
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