pub struct PublicApiError {
pub message: String,
pub code: PublicApiErrorCode,
pub details: Option<Box<PublicApiErrorDetails>>,
}Expand description
PublicApiError : Standard error response for the stable evaluators and evaluation-rules API. Use the HTTP status for the broad failure class and code for programmatic handling. details is included when field-level validation or retry information is available.
Fields§
§message: StringHuman-readable description of the failure.
code: PublicApiErrorCode§details: Option<Box<PublicApiErrorDetails>>Implementations§
Source§impl PublicApiError
impl PublicApiError
Sourcepub fn builder() -> PublicApiErrorBuilder
pub fn builder() -> PublicApiErrorBuilder
Create an instance of PublicApiError using the builder syntax
Source§impl PublicApiError
impl PublicApiError
Sourcepub fn new(message: String, code: PublicApiErrorCode) -> PublicApiError
pub fn new(message: String, code: PublicApiErrorCode) -> PublicApiError
Standard error response for the stable evaluators and evaluation-rules API. Use the HTTP status for the broad failure class and code for programmatic handling. details is included when field-level validation or retry information is available.
Trait Implementations§
Source§impl Clone for PublicApiError
impl Clone for PublicApiError
Source§impl Debug for PublicApiError
impl Debug for PublicApiError
Source§impl Default for PublicApiError
impl Default for PublicApiError
Source§impl<'de> Deserialize<'de> for PublicApiError
impl<'de> Deserialize<'de> for PublicApiError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PublicApiError
impl PartialEq for PublicApiError
Source§impl Serialize for PublicApiError
impl Serialize for PublicApiError
impl StructuralPartialEq for PublicApiError
Auto Trait Implementations§
impl Freeze for PublicApiError
impl RefUnwindSafe for PublicApiError
impl Send for PublicApiError
impl Sync for PublicApiError
impl Unpin for PublicApiError
impl UnsafeUnpin for PublicApiError
impl UnwindSafe for PublicApiError
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