#[non_exhaustive]pub struct UserState {
pub user: Address,
pub agent_address: Option<Address>,
pub agent_valid_until: Option<u64>,
pub server_time: u64,
pub cum_ledger: Dec,
pub is_vault: bool,
pub abstraction: Option<String>,
pub dex_abstraction_enabled: bool,
pub opt_out_of_spot_dusting: bool,
}Expand description
userState in webData3: the account’s own fields.
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.user: AddressThe account.
agent_address: Option<Address>agentAddress: the agent wallet the frontend signs with; None when there is none.
agent_valid_until: Option<u64>Milliseconds.
server_time: u64Milliseconds.
cum_ledger: DeccumLedger: the account’s cumulative ledger total, USDC.
is_vault: boolisVault: whether the account is a vault.
abstraction: Option<String>The account mode: disabled, default, unifiedAccount, portfolioMargin.
dex_abstraction_enabled: booldexAbstractionEnabled: whether dex abstraction is on for the account; false when not sent.
opt_out_of_spot_dusting: booloptOutOfSpotDusting: whether the account opted out of spot dusting, the venue’s sweep of
tiny spot balances; false when not sent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserState
impl<'de> Deserialize<'de> for UserState
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 Eq for UserState
impl StructuralPartialEq for UserState
Auto Trait Implementations§
impl Forget for UserState
impl Freeze for UserState
impl Move for UserState
impl RefUnwindSafe for UserState
impl Send for UserState
impl Sync for UserState
impl Unpin for UserState
impl UnsafeUnpin for UserState
impl UnwindSafe for UserState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.