pub struct TrackInfo {
pub identifier: String,
pub is_seekable: bool,
pub author: String,
pub length: u64,
pub is_stream: bool,
pub position: u64,
pub title: String,
pub uri: Option<String>,
pub artwork_url: Option<String>,
pub isrc: Option<String>,
pub source_name: String,
}
Expand description
Information and metadata about the track.
Fields§
§identifier: String
The track identifier.
is_seekable: bool
Whether the track is seekable.
The track author.
length: u64
The track length in milliseconds.
is_stream: bool
Whether the track is a stream.
position: u64
The track starting position in milliseconds.
title: String
The track title,
uri: Option<String>
The track uri.
artwork_url: Option<String>
The track artwork url.
isrc: Option<String>
The track “International Standard Recording Code”.
source_name: String
The track source name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrackInfo
impl<'de> Deserialize<'de> for TrackInfo
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 Ord for TrackInfo
impl Ord for TrackInfo
Source§impl PartialOrd for TrackInfo
impl PartialOrd for TrackInfo
Source§impl PyClassImpl for TrackInfo
impl PyClassImpl for TrackInfo
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§type ThreadChecker = SendablePyClass<TrackInfo>
type ThreadChecker = SendablePyClass<TrackInfo>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyTypeInfo for TrackInfo
impl PyTypeInfo for TrackInfo
Source§type AsRefTarget = PyCell<TrackInfo>
type AsRefTarget = PyCell<TrackInfo>
Utility type to make Py::as_ref work.
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.impl Eq for TrackInfo
impl StructuralPartialEq for TrackInfo
Auto Trait Implementations§
impl Freeze for TrackInfo
impl RefUnwindSafe for TrackInfo
impl Send for TrackInfo
impl Sync for TrackInfo
impl Unpin for TrackInfo
impl UnwindSafe for TrackInfo
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.