pub struct SessionResponse {
pub key: String,
pub subscriber: i64,
pub name: String,
}
Expand description
Response to an Authentication request.
Contains a Session Key and the username of the authenticated Last.fm user and a subscriber ID. Only the Session Key is used internally by the crate; the other values are exposed as they may have some value for clients.
Fields§
§key: String
§subscriber: i64
§name: String
Trait Implementations§
Source§impl Clone for SessionResponse
impl Clone for SessionResponse
Source§fn clone(&self) -> SessionResponse
fn clone(&self) -> SessionResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SessionResponse
impl Debug for SessionResponse
Source§impl<'de> Deserialize<'de> for SessionResponse
impl<'de> Deserialize<'de> for SessionResponse
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
Auto Trait Implementations§
impl Freeze for SessionResponse
impl RefUnwindSafe for SessionResponse
impl Send for SessionResponse
impl Sync for SessionResponse
impl Unpin for SessionResponse
impl UnwindSafe for SessionResponse
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