pub struct MediaPlayer {
pub apple_music_usage_description: Option<String>,
}Expand description
Media Player
Fields§
§apple_music_usage_description: Option<String>A message that tells the user why the app is requesting access to the user’s media library.
Set the value of this key to a user-readable description of how you intend to use the user’s media library. The first time your app access the user’s media library, the system prompts the user to grant or deny authorization for your app to do so. The system includes this key’s description in the dialog it displays to the user.
§Important
This key is required if your app uses APIs that access the user’s media library.
§Availability
- iOS 2.0+
§Framework
- Media Player
Trait Implementations§
Source§impl Clone for MediaPlayer
impl Clone for MediaPlayer
Source§fn clone(&self) -> MediaPlayer
fn clone(&self) -> MediaPlayer
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 MediaPlayer
impl Debug for MediaPlayer
Source§impl Default for MediaPlayer
impl Default for MediaPlayer
Source§fn default() -> MediaPlayer
fn default() -> MediaPlayer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MediaPlayer
impl<'de> Deserialize<'de> for MediaPlayer
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 MediaPlayer
impl PartialEq for MediaPlayer
Source§impl Serialize for MediaPlayer
impl Serialize for MediaPlayer
impl Eq for MediaPlayer
impl StructuralPartialEq for MediaPlayer
Auto Trait Implementations§
impl Freeze for MediaPlayer
impl RefUnwindSafe for MediaPlayer
impl Send for MediaPlayer
impl Sync for MediaPlayer
impl Unpin for MediaPlayer
impl UnwindSafe for MediaPlayer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.