pub enum ObjectKind {
CaptureBase(CaptureContent),
OCABundle(BundleContent),
Overlay(OverlayType, Content),
}
Variants§
Implementations§
Source§impl ObjectKind
impl ObjectKind
pub fn capture_content(&self) -> Option<&CaptureContent>
pub fn overlay_content(&self) -> Option<&Content>
pub fn oca_bundle_content(&self) -> Option<&BundleContent>
Trait Implementations§
Source§impl Clone for ObjectKind
impl Clone for ObjectKind
Source§fn clone(&self) -> ObjectKind
fn clone(&self) -> ObjectKind
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 ObjectKind
impl Debug for ObjectKind
Source§impl<'de> Deserialize<'de> for ObjectKind
impl<'de> Deserialize<'de> for ObjectKind
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 From<ObjectKind> for u8
impl From<ObjectKind> for u8
Source§fn from(val: ObjectKind) -> Self
fn from(val: ObjectKind) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ObjectKind
impl From<u8> for ObjectKind
Source§impl Hash for ObjectKind
impl Hash for ObjectKind
Source§impl PartialEq for ObjectKind
impl PartialEq for ObjectKind
Source§impl Serialize for ObjectKind
impl Serialize for ObjectKind
impl Eq for ObjectKind
impl StructuralPartialEq for ObjectKind
Auto Trait Implementations§
impl Freeze for ObjectKind
impl RefUnwindSafe for ObjectKind
impl Send for ObjectKind
impl Sync for ObjectKind
impl Unpin for ObjectKind
impl UnwindSafe for ObjectKind
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> 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.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.