pub struct RemoteGranted {
pub token: String,
pub item: MediaId,
pub endpoint_id: String,
pub expires_at: i64,
pub download: Option<String>,
}Expand description
The item’s server’s token for the device (RemoteGrant): redeem it on
that server’s client/1 (RedeemPlayToken) from the device that
asked.
Fields§
§token: String§item: MediaIdThe item, by the item’s server’s own id: what to name in
StartPlayback on that server.
endpoint_id: StringThe item’s server’s endpoint id, hex.
expires_at: i64When the token stops working, Unix seconds: minutes from now.
download: Option<String>For a download token (RemoteGrant with a download): the
download’s id on the item’s server, what the device reads there
(ResourceRequest::Download) with the session the token opens.
Trait Implementations§
Source§impl Clone for RemoteGranted
impl Clone for RemoteGranted
Source§impl Debug for RemoteGranted
impl Debug for RemoteGranted
Source§impl<'de> Deserialize<'de> for RemoteGranted
impl<'de> Deserialize<'de> for RemoteGranted
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
impl Eq for RemoteGranted
Source§impl PartialEq for RemoteGranted
impl PartialEq for RemoteGranted
Source§impl Serialize for RemoteGranted
impl Serialize for RemoteGranted
impl StructuralPartialEq for RemoteGranted
Auto Trait Implementations§
impl Freeze for RemoteGranted
impl RefUnwindSafe for RemoteGranted
impl Send for RemoteGranted
impl Sync for RemoteGranted
impl Unpin for RemoteGranted
impl UnsafeUnpin for RemoteGranted
impl UnwindSafe for RemoteGranted
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