pub struct MediaEntity { /* private fields */ }Implementations§
Source§impl MediaEntity
impl MediaEntity
pub fn has_flags(version: Version) -> bool
pub fn id(&self) -> EntityId
pub fn name(&self) -> &str
pub fn function(&self) -> MediaEntityFunctions
pub fn flags(&self) -> Option<MediaEntityFlags>
pub fn from_raw_entity(version: Version, entity: media_v2_entity) -> Self
pub fn from_desc(version: Version, desc: MediaEntityDesc) -> Self
Trait Implementations§
Source§impl Clone for MediaEntity
impl Clone for MediaEntity
Source§fn clone(&self) -> MediaEntity
fn clone(&self) -> MediaEntity
Returns a duplicate of the value. Read more
1.0.0 · 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 MediaEntity
impl Debug for MediaEntity
Source§impl<'de> Deserialize<'de> for MediaEntity
impl<'de> Deserialize<'de> for MediaEntity
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 MediaEntity
impl Ord for MediaEntity
Source§fn cmp(&self, other: &MediaEntity) -> Ordering
fn cmp(&self, other: &MediaEntity) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MediaEntity
impl PartialEq for MediaEntity
Source§impl PartialOrd for MediaEntity
impl PartialOrd for MediaEntity
Source§impl Serialize for MediaEntity
impl Serialize for MediaEntity
impl Eq for MediaEntity
impl StructuralPartialEq for MediaEntity
Auto Trait Implementations§
impl Freeze for MediaEntity
impl RefUnwindSafe for MediaEntity
impl Send for MediaEntity
impl Sync for MediaEntity
impl Unpin for MediaEntity
impl UnsafeUnpin for MediaEntity
impl UnwindSafe for MediaEntity
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