pub struct ApiError {
pub code: String,
pub message: String,
}Expand description
Error information returned by the Vtiger API.
When an API call fails, the Vtiger API returns structured error information containing both a code for programmatic handling and a human-readable message.
§Examples
use vtiger_client::ApiError;
let error = ApiError {
code: "AUTHENTICATION_FAILURE".to_string(),
message: "Invalid username or access key".to_string(),
};Fields§
§code: StringError code for programmatic error handling
message: StringHuman-readable error message
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiError
impl<'de> Deserialize<'de> for ApiError
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
Auto Trait Implementations§
impl Freeze for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnwindSafe for ApiError
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