pub struct PlatformVaultSetupPrepareRequest {
pub wallet_address: String,
pub session_public_key: String,
pub market_id: Option<String>,
pub expires_at_ms: Option<u64>,
pub minimum_interval_seconds: Option<u32>,
pub maximum_tolerance_bps: Option<u16>,
pub spending_limits: Vec<PlatformVaultSpendingLimit>,
}Expand description
One-signature onboarding: only the wallet and the external session key are required. One session then trades every market. Everything else is an optional policy on top; absent values take the product defaults.
Fields§
§wallet_address: String§session_public_key: String§market_id: Option<String>Optional. Names the market whose price protection the session pins when the product has one; the session trades every market either way.
expires_at_ms: Option<u64>Null or absent requests the permanent-session expiry supported by the product.
minimum_interval_seconds: Option<u32>Absent takes PLATFORM_SESSION_DEFAULT_MINIMUM_INTERVAL_SECONDS.
maximum_tolerance_bps: Option<u16>Absent takes PLATFORM_SESSION_DEFAULT_MAXIMUM_TOLERANCE_BPS.
spending_limits: Vec<PlatformVaultSpendingLimit>Optional per-asset ceilings, at most PLATFORM_SESSION_MAX_SPENDING_LIMITS.
Assets without a limit are unlimited.
Trait Implementations§
Source§impl Clone for PlatformVaultSetupPrepareRequest
impl Clone for PlatformVaultSetupPrepareRequest
Source§fn clone(&self) -> PlatformVaultSetupPrepareRequest
fn clone(&self) -> PlatformVaultSetupPrepareRequest
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<'de> Deserialize<'de> for PlatformVaultSetupPrepareRequest
impl<'de> Deserialize<'de> for PlatformVaultSetupPrepareRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformVaultSetupPrepareRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformVaultSetupPrepareRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformVaultSetupPrepareRequest
Source§impl Serialize for PlatformVaultSetupPrepareRequest
impl Serialize for PlatformVaultSetupPrepareRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlatformVaultSetupPrepareRequest
Auto Trait Implementations§
impl Freeze for PlatformVaultSetupPrepareRequest
impl RefUnwindSafe for PlatformVaultSetupPrepareRequest
impl Send for PlatformVaultSetupPrepareRequest
impl Sync for PlatformVaultSetupPrepareRequest
impl Unpin for PlatformVaultSetupPrepareRequest
impl UnsafeUnpin for PlatformVaultSetupPrepareRequest
impl UnwindSafe for PlatformVaultSetupPrepareRequest
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