pub struct MediaPad {
pub id: PadId,
pub entity_id: EntityId,
pub flags: MediaPadFlags,
pub index: Option<usize>,
}Fields§
§id: PadIdUnique ID for the pad. Do not expect that the ID will always be the same for each instance of the device. In other words, do not hardcode pad IDs in an application.
entity_id: EntityIdUnique ID for the entity where this pad belongs.
flags: MediaPadFlags§index: Option<usize>Pad index, starts at 0. Only valid if has_index(media_version) returns true.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaPad
impl<'de> Deserialize<'de> for MediaPad
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 MediaPad
impl Ord for MediaPad
Source§impl PartialOrd for MediaPad
impl PartialOrd for MediaPad
impl Eq for MediaPad
impl StructuralPartialEq for MediaPad
Auto Trait Implementations§
impl Freeze for MediaPad
impl RefUnwindSafe for MediaPad
impl Send for MediaPad
impl Sync for MediaPad
impl Unpin for MediaPad
impl UnsafeUnpin for MediaPad
impl UnwindSafe for MediaPad
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