pub struct SessionMetadata {
pub app_url: String,
pub app_name: Option<String>,
pub app_description: Option<String>,
pub app_icon: Option<String>,
}
Fields§
§app_url: String
dApp URL
app_name: Option<String>
dApp Name
app_description: Option<String>
dApp Description (provided by the dApp developers)
app_icon: Option<String>
dApp icon URL
Implementations§
Source§impl SessionMetadata
impl SessionMetadata
pub fn new(app_url: String) -> SessionMetadata
Trait Implementations§
Source§impl Clone for SessionMetadata
impl Clone for SessionMetadata
Source§fn clone(&self) -> SessionMetadata
fn clone(&self) -> SessionMetadata
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 SessionMetadata
impl Debug for SessionMetadata
Source§impl Default for SessionMetadata
impl Default for SessionMetadata
Source§fn default() -> SessionMetadata
fn default() -> SessionMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionMetadata
impl<'de> Deserialize<'de> for SessionMetadata
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 SessionMetadata
impl PartialEq for SessionMetadata
Source§impl Serialize for SessionMetadata
impl Serialize for SessionMetadata
impl StructuralPartialEq for SessionMetadata
Auto Trait Implementations§
impl Freeze for SessionMetadata
impl RefUnwindSafe for SessionMetadata
impl Send for SessionMetadata
impl Sync for SessionMetadata
impl Unpin for SessionMetadata
impl UnwindSafe for SessionMetadata
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