pub struct SessionDto {
pub id: String,
pub user_id: String,
pub session_metadata: SessionMetadata,
pub vault_account_id: f64,
pub fee_level: FeeLevel,
pub chain_ids: Vec<String>,
pub connection_type: ConnectionType,
pub connection_method: ConnectionMethod,
pub creation_date: String,
}Fields§
§id: StringId of the connection
user_id: StringId of the user that created the connection
session_metadata: SessionMetadataMetadata of the connection (provided by the dapp)
vault_account_id: f64The vault to connect
fee_level: FeeLevelThe default fee level
chain_ids: Vec<String>The chains approved for the connection
connection_type: ConnectionTypeThe connection’s type
connection_method: ConnectionMethodThe method through which the connection was established
creation_date: StringTimestamp of the session’s creation
Implementations§
Source§impl SessionDto
impl SessionDto
pub fn new( id: String, user_id: String, session_metadata: SessionMetadata, vault_account_id: f64, fee_level: FeeLevel, chain_ids: Vec<String>, connection_type: ConnectionType, connection_method: ConnectionMethod, creation_date: String, ) -> SessionDto
Trait Implementations§
Source§impl Clone for SessionDto
impl Clone for SessionDto
Source§fn clone(&self) -> SessionDto
fn clone(&self) -> SessionDto
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 SessionDto
impl Debug for SessionDto
Source§impl Default for SessionDto
impl Default for SessionDto
Source§fn default() -> SessionDto
fn default() -> SessionDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionDto
impl<'de> Deserialize<'de> for SessionDto
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 PartialEq for SessionDto
impl PartialEq for SessionDto
Source§impl Serialize for SessionDto
impl Serialize for SessionDto
impl StructuralPartialEq for SessionDto
Auto Trait Implementations§
impl Freeze for SessionDto
impl RefUnwindSafe for SessionDto
impl Send for SessionDto
impl Sync for SessionDto
impl Unpin for SessionDto
impl UnwindSafe for SessionDto
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