pub struct APlayerAudio {
pub name: String,
pub artist: String,
pub url: String,
pub cover: String,
pub lrc: Option<String>,
}Fields§
§name: String§artist: String§url: String§cover: String§lrc: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for APlayerAudio
impl Clone for APlayerAudio
Source§fn clone(&self) -> APlayerAudio
fn clone(&self) -> APlayerAudio
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 APlayerAudio
impl Debug for APlayerAudio
Source§impl<'de> Deserialize<'de> for APlayerAudio
impl<'de> Deserialize<'de> for APlayerAudio
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<APlayerAudio, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<APlayerAudio, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<APlayerAudio> for JsValue
impl From<APlayerAudio> for JsValue
Source§fn from(value: APlayerAudio) -> JsValue
fn from(value: APlayerAudio) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for APlayerAudio
impl FromWasmAbi for APlayerAudio
Source§type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
The Wasm ABI type that this converts from when coming back out from the
ABI boundary.
Source§unsafe fn from_abi(js: <APlayerAudio as FromWasmAbi>::Abi) -> APlayerAudio
unsafe fn from_abi(js: <APlayerAudio as FromWasmAbi>::Abi) -> APlayerAudio
Source§impl IntoWasmAbi for APlayerAudio
impl IntoWasmAbi for APlayerAudio
Source§type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
The Wasm ABI type that this converts into when crossing the ABI
boundary.
Source§fn into_abi(self) -> <APlayerAudio as IntoWasmAbi>::Abi
fn into_abi(self) -> <APlayerAudio as IntoWasmAbi>::Abi
Convert
self into Self::Abi so that it can be sent across the wasm
ABI boundary.Source§impl LongRefFromWasmAbi for APlayerAudio
impl LongRefFromWasmAbi for APlayerAudio
Source§type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<APlayerAudio>
type Anchor = RcRef<APlayerAudio>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(
js: <APlayerAudio as LongRefFromWasmAbi>::Abi,
) -> <APlayerAudio as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <APlayerAudio as LongRefFromWasmAbi>::Abi, ) -> <APlayerAudio as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for APlayerAudio
impl OptionFromWasmAbi for APlayerAudio
Source§fn is_none(abi: &<APlayerAudio as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<APlayerAudio as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for APlayerAudio
impl OptionIntoWasmAbi for APlayerAudio
Source§fn none() -> <APlayerAudio as IntoWasmAbi>::Abi
fn none() -> <APlayerAudio as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§impl PartialEq for APlayerAudio
impl PartialEq for APlayerAudio
Source§fn eq(&self, other: &APlayerAudio) -> bool
fn eq(&self, other: &APlayerAudio) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for APlayerAudio
impl RefFromWasmAbi for APlayerAudio
Source§type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<APlayerAudio>
type Anchor = RcRef<APlayerAudio>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§unsafe fn ref_from_abi(
js: <APlayerAudio as RefFromWasmAbi>::Abi,
) -> <APlayerAudio as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <APlayerAudio as RefFromWasmAbi>::Abi, ) -> <APlayerAudio as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for APlayerAudio
impl RefMutFromWasmAbi for APlayerAudio
Source§type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
type Abi = WasmPtr<WasmRefCell<APlayerAudio>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<APlayerAudio>
type Anchor = RcRefMut<APlayerAudio>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(
js: <APlayerAudio as RefMutFromWasmAbi>::Abi,
) -> <APlayerAudio as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <APlayerAudio as RefMutFromWasmAbi>::Abi, ) -> <APlayerAudio as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl Serialize for APlayerAudio
impl Serialize for APlayerAudio
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for APlayerAudio
Source§impl TryFromJsValue for APlayerAudio
impl TryFromJsValue for APlayerAudio
Source§fn try_from_js_value(value: JsValue) -> Result<APlayerAudio, JsValue>
fn try_from_js_value(value: JsValue) -> Result<APlayerAudio, JsValue>
Performs the conversion.
Source§fn try_from_js_value_ref(value: &JsValue) -> Option<APlayerAudio>
fn try_from_js_value_ref(value: &JsValue) -> Option<APlayerAudio>
Performs the conversion.
Source§impl VectorFromWasmAbi for APlayerAudio
impl VectorFromWasmAbi for APlayerAudio
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <APlayerAudio as VectorFromWasmAbi>::Abi, ) -> Box<[APlayerAudio]>
Source§impl VectorIntoWasmAbi for APlayerAudio
impl VectorIntoWasmAbi for APlayerAudio
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[APlayerAudio]>, ) -> <APlayerAudio as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for APlayerAudio
impl RefUnwindSafe for APlayerAudio
impl Send for APlayerAudio
impl Sync for APlayerAudio
impl Unpin for APlayerAudio
impl UnsafeUnpin for APlayerAudio
impl UnwindSafe for APlayerAudio
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.