ReferenceSdkRustTypes
RpcStatus
Rust struct goodmem::models::RpcStatus: declaration, fields or variants, and implementations.
Struct RpcStatus
goodmem::models::RpcStatus
Status payload for per-page OCR errors.
pub struct RpcStatus {
pub code: i32,
pub message: Option<String>,
}Fields
code
pub code: i32
gRPC status code as defined by google.rpc.Code
Wire name: code.
message
pub message: Option<String>
Human-readable error message
Wire name: message.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for RpcStatusimpl std::fmt::Debug for RpcStatus