pub struct ListMandatesResponse {
pub mandates: Vec<Mandate>,
pub next_page_token: Option<String>,
}Expand description
ListMandatesResponse
JSON schema
{
"examples": [
{
"mandates": [
{
"approvalRedirect": {
"failureUrl": "https://merchant.example.com/mandate/approval/failed",
"successUrl": "https://merchant.example.com/mandate/approval/success"
},
"approvedAt": "2025-06-15T12:05:00.000Z",
"asset": "usdc",
"createdAt": "2025-06-15T12:00:00.000Z",
"expiresAt": "2027-06-15T12:00:00.000Z",
"mandateId": "mandate_82c879c1-84e1-44ed-a8c2-1ac239cf09ad",
"policy": {
"maxPerAuthorization": "50.00",
"maxPerPeriod": {
"amount": "500.00",
"period": "month"
}
},
"revocationRedirect": {
"failureUrl": "https://merchant.example.com/mandate/revocation/failed",
"successUrl": "https://merchant.example.com/mandate/revocation/success"
},
"revocationUrl": "https://payments.coinbase.com/mandates/mandate_82c879c1-84e1-44ed-a8c2-1ac239cf09ad/revoke",
"source": {
"address": "0xAbC1234567890aBcDeF1234567890AbCdEf123456",
"asset": "usdc",
"network": "base"
},
"status": "approval_succeeded",
"updatedAt": "2025-06-15T12:05:00.000Z"
}
],
"nextPageToken": "eyJsYXN0X2lkIjogImFiYzEyMyIsICJ0aW1lc3RhbXAiOiAxNzA3ODIzNzAxfQ=="
}
],
"allOf": [
{
"type": "object",
"required": [
"mandates"
],
"properties": {
"mandates": {
"description": "The list of mandates.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Mandate"
}
}
}
},
{
"$ref": "#/components/schemas/ListResponse"
}
]
}Fields§
§mandates: Vec<Mandate>The list of mandates.
next_page_token: Option<String>The token for the next page of items, if any.
Implementations§
Source§impl ListMandatesResponse
impl ListMandatesResponse
pub fn builder() -> ListMandatesResponse
Trait Implementations§
Source§impl Clone for ListMandatesResponse
impl Clone for ListMandatesResponse
Source§impl Debug for ListMandatesResponse
impl Debug for ListMandatesResponse
Source§impl<'de> Deserialize<'de> for ListMandatesResponse
impl<'de> Deserialize<'de> for ListMandatesResponse
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 From<&ListMandatesResponse> for ListMandatesResponse
impl From<&ListMandatesResponse> for ListMandatesResponse
Source§fn from(value: &ListMandatesResponse) -> Self
fn from(value: &ListMandatesResponse) -> Self
Converts to this type from the input type.
Source§impl From<ListMandatesResponse> for ListMandatesResponse
impl From<ListMandatesResponse> for ListMandatesResponse
Source§fn from(value: ListMandatesResponse) -> Self
fn from(value: ListMandatesResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for ListMandatesResponse
impl Serialize for ListMandatesResponse
Source§impl TryFrom<ListMandatesResponse> for ListMandatesResponse
impl TryFrom<ListMandatesResponse> for ListMandatesResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ListMandatesResponse) -> Result<Self, ConversionError>
fn try_from(value: ListMandatesResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ListMandatesResponse
impl RefUnwindSafe for ListMandatesResponse
impl Send for ListMandatesResponse
impl Sync for ListMandatesResponse
impl Unpin for ListMandatesResponse
impl UnsafeUnpin for ListMandatesResponse
impl UnwindSafe for ListMandatesResponse
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