pub struct OpenGraphSong {
pub disc: Option<i64>,
pub track: Option<i64>,
pub url: Option<String>,
pub extra: Map<String, Value>,
}Expand description
A model representing a song in the OpenGraph data structure.
Fields§
§disc: Option<i64>The disc number on which the song appears, applicable for albums with multiple discs.
track: Option<i64>The track number of the song on its disc.
url: Option<String>The URL where the song can be accessed.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for OpenGraphSong
impl Clone for OpenGraphSong
Source§impl Debug for OpenGraphSong
impl Debug for OpenGraphSong
Source§impl Default for OpenGraphSong
impl Default for OpenGraphSong
Source§impl<'de> Deserialize<'de> for OpenGraphSong
impl<'de> Deserialize<'de> for OpenGraphSong
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 OpenGraphSong
impl PartialEq for OpenGraphSong
Source§impl Serialize for OpenGraphSong
impl Serialize for OpenGraphSong
impl StructuralPartialEq for OpenGraphSong
Auto Trait Implementations§
impl Freeze for OpenGraphSong
impl RefUnwindSafe for OpenGraphSong
impl Send for OpenGraphSong
impl Sync for OpenGraphSong
impl Unpin for OpenGraphSong
impl UnsafeUnpin for OpenGraphSong
impl UnwindSafe for OpenGraphSong
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