#[non_exhaustive]pub struct SquareResponse {
pub response: Option<Response>,
pub opt_response01: Option<Response>,
pub opt_response02: Option<Response>,
pub opt_response03: Option<Response>,
pub errors: Option<Vec<ResponseError>>,
pub cursor: Option<String>,
pub id_mapping: Option<Vec<(String, String)>>,
pub id: Option<String>,
pub cancelled_order_id: Option<String>,
pub deleted_object_ids: Option<Vec<String>>,
pub deleted_at: Option<String>,
pub latest_time: Option<String>,
}Expand description
The SquareResponse response defines the generic response type that encompasses almost all possible Square API responses. All fields are optional to allow for handling of possible errors returned by the Square API.
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.response: Option<Response>§opt_response01: Option<Response>§opt_response02: Option<Response>§opt_response03: Option<Response>§errors: Option<Vec<ResponseError>>§cursor: Option<String>§id_mapping: Option<Vec<(String, String)>>§id: Option<String>§cancelled_order_id: Option<String>§deleted_object_ids: Option<Vec<String>>§deleted_at: Option<String>§latest_time: Option<String>Trait Implementations§
Source§impl Clone for SquareResponse
impl Clone for SquareResponse
Source§fn clone(&self) -> SquareResponse
fn clone(&self) -> SquareResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SquareResponse
impl Debug for SquareResponse
Source§impl<'de> Deserialize<'de> for SquareResponse
impl<'de> Deserialize<'de> for SquareResponse
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 SquareResponse
impl RefUnwindSafe for SquareResponse
impl Send for SquareResponse
impl Sync for SquareResponse
impl Unpin for SquareResponse
impl UnwindSafe for SquareResponse
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