pub struct Bgm {
pub name: String,
pub pitch: i32,
pub volume: i32,
}
Fields§
§name: String
§pitch: i32
§volume: i32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bgm
impl<'de> Deserialize<'de> for Bgm
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<'a> FromValue<'a> for Bgm
impl<'a> FromValue<'a> for Bgm
Source§fn from_value(
ctx: &FromValueContext<'_>,
value: &'a Value,
) -> Result<Self, FromValueError>
fn from_value( ctx: &FromValueContext<'_>, value: &'a Value, ) -> Result<Self, FromValueError>
Create this type from the given value from the [
ValueArena
]. Read moreAuto Trait Implementations§
impl Freeze for Bgm
impl RefUnwindSafe for Bgm
impl Send for Bgm
impl Sync for Bgm
impl Unpin for Bgm
impl UnwindSafe for Bgm
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