pub struct ReleaseRights {
pub can_stream: Option<bool>,
pub can_download: Option<bool>,
}Expand description
Release rights model containing information about usage rights
This struct represents the rights associated with a release, specifically whether it can be streamed or downloaded.
§Examples
use qobuz_api_rust::models::ReleaseRights;
let rights = ReleaseRights {
can_stream: Some(true),
can_download: Some(true),
};Fields§
§can_stream: Option<bool>Whether the release can be streamed
can_download: Option<bool>Whether the release can be downloaded
Trait Implementations§
Source§impl Clone for ReleaseRights
impl Clone for ReleaseRights
Source§fn clone(&self) -> ReleaseRights
fn clone(&self) -> ReleaseRights
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 ReleaseRights
impl Debug for ReleaseRights
Source§impl Default for ReleaseRights
impl Default for ReleaseRights
Source§fn default() -> ReleaseRights
fn default() -> ReleaseRights
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReleaseRights
impl<'de> Deserialize<'de> for ReleaseRights
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 ReleaseRights
impl RefUnwindSafe for ReleaseRights
impl Send for ReleaseRights
impl Sync for ReleaseRights
impl Unpin for ReleaseRights
impl UnwindSafe for ReleaseRights
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