pub struct LastFmEditSession {
pub username: String,
pub cookies: Vec<String>,
pub csrf_token: Option<String>,
pub base_url: String,
}Expand description
Serializable client session state that can be persisted and restored.
This contains all the authentication state needed to resume a Last.fm session without requiring the user to log in again.
Fields§
§username: StringThe authenticated username
Session cookies required for authenticated requests
csrf_token: Option<String>CSRF token for form submissions
base_url: StringBase URL for the Last.fm instance
Implementations§
Source§impl LastFmEditSession
impl LastFmEditSession
Sourcepub fn new(
username: String,
session_cookies: Vec<String>,
csrf_token: Option<String>,
base_url: String,
) -> Self
pub fn new( username: String, session_cookies: Vec<String>, csrf_token: Option<String>, base_url: String, ) -> Self
Create a new client session with the provided state
Trait Implementations§
Source§impl Clone for LastFmEditSession
impl Clone for LastFmEditSession
Source§fn clone(&self) -> LastFmEditSession
fn clone(&self) -> LastFmEditSession
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LastFmEditSession
impl Debug for LastFmEditSession
Source§impl<'de> Deserialize<'de> for LastFmEditSession
impl<'de> Deserialize<'de> for LastFmEditSession
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 LastFmEditSession
impl PartialEq for LastFmEditSession
Source§impl Serialize for LastFmEditSession
impl Serialize for LastFmEditSession
impl Eq for LastFmEditSession
impl StructuralPartialEq for LastFmEditSession
Auto Trait Implementations§
impl Freeze for LastFmEditSession
impl RefUnwindSafe for LastFmEditSession
impl Send for LastFmEditSession
impl Sync for LastFmEditSession
impl Unpin for LastFmEditSession
impl UnwindSafe for LastFmEditSession
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.