pub struct ApprovalsResponse {
pub address: String,
pub chain_id: u64,
pub checked_at: String,
pub contracts: Vec<ApprovalContract>,
}Expand description
Token approval state for a wallet, from GET /v1/approvals.
Fields§
§address: StringThe wallet the approvals were read for.
chain_id: u64Chain the approvals were read on.
checked_at: StringRFC 3339 timestamp of when the response was generated.
Left as a string deliberately: upstream tracks approval state from onchain events rather than reading fresh, so parsing this into a timestamp type would imply a freshness guarantee it does not carry.
contracts: Vec<ApprovalContract>Every approval Polymarket tracks, in a stable display order.
Pairs the wallet has never approved are still present with approved
false, so the length does not vary with wallet state. Upstream does not
publish how many entries that is — do not depend on a count.
Trait Implementations§
Source§impl Clone for ApprovalsResponse
impl Clone for ApprovalsResponse
Source§fn clone(&self) -> ApprovalsResponse
fn clone(&self) -> ApprovalsResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApprovalsResponse
impl Debug for ApprovalsResponse
Source§impl<'de> Deserialize<'de> for ApprovalsResponse
impl<'de> Deserialize<'de> for ApprovalsResponse
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 ApprovalsResponse
impl RefUnwindSafe for ApprovalsResponse
impl Send for ApprovalsResponse
impl Sync for ApprovalsResponse
impl Unpin for ApprovalsResponse
impl UnsafeUnpin for ApprovalsResponse
impl UnwindSafe for ApprovalsResponse
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