pub struct SongMedia {
pub native_uri: Option<String>,
pub attribution: Option<String>,
pub provider: String,
pub start: Option<u32>,
pub media_type: String,
pub url: String,
}Fields§
§native_uri: Option<String>Spotify path of the song with : instead /, weird.
attribution: Option<String>Soundcloud username.
provider: StringThe song host provider youtube, soundcloud or spotify.
start: Option<u32>Youtube position of the video that starts the music.
media_type: StringMedia type video or audio
url: StringThe url of the song in the media host.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SongMedia
impl<'de> Deserialize<'de> for SongMedia
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 SongMedia
impl RefUnwindSafe for SongMedia
impl Send for SongMedia
impl Sync for SongMedia
impl Unpin for SongMedia
impl UnsafeUnpin for SongMedia
impl UnwindSafe for SongMedia
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