#[non_exhaustive]pub struct ApiResult {
pub status: u16,
pub error_msg: String,
pub date: String,
pub extra: Map<String, Value>,
}Expand description
RESULT element: outcome of the request.
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.status: u160 success, 1 success without data, 2 partly without data
(bulk requests only). 100 and above are errors and never reach a
response struct: they become EstatError::Api.
error_msg: StringMessage for the status, such as 正常に終了しました。.
date: StringWhen the response was made, such as 2026-10-03T09:08:42.778+09:00.
extra: Map<String, Value>Fields this crate does not know yet, kept as received.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiResult
impl<'de> Deserialize<'de> for ApiResult
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
impl StructuralPartialEq for ApiResult
Auto Trait Implementations§
impl Forget for ApiResult
impl Freeze for ApiResult
impl Move for ApiResult
impl RefUnwindSafe for ApiResult
impl Send for ApiResult
impl Sync for ApiResult
impl Unpin for ApiResult
impl UnsafeUnpin for ApiResult
impl UnwindSafe for ApiResult
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