pub struct AnnotationTarget {
pub pointer: String,
pub kind: Option<String>,
pub rect: Option<[f32; 4]>,
}Expand description
What an annotation points at: a JSON Pointer into the source scenario, plus optional context captured at click time.
Fields§
§pointer: StringRFC 6901 JSON Pointer into the source scenario (e.g. “/scenes/2/children/5”).
kind: Option<String>Component kind label captured at click time (e.g. “text”, “card”).
rect: Option<[f32; 4]>Bounding box [x, y, w, h] in video coords at the capture frame.
Trait Implementations§
Source§impl Clone for AnnotationTarget
impl Clone for AnnotationTarget
Source§fn clone(&self) -> AnnotationTarget
fn clone(&self) -> AnnotationTarget
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 AnnotationTarget
impl Debug for AnnotationTarget
Source§impl<'de> Deserialize<'de> for AnnotationTarget
impl<'de> Deserialize<'de> for AnnotationTarget
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 JsonSchema for AnnotationTarget
impl JsonSchema for AnnotationTarget
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AnnotationTarget
impl PartialEq for AnnotationTarget
Source§impl Serialize for AnnotationTarget
impl Serialize for AnnotationTarget
impl StructuralPartialEq for AnnotationTarget
Auto Trait Implementations§
impl Freeze for AnnotationTarget
impl RefUnwindSafe for AnnotationTarget
impl Send for AnnotationTarget
impl Sync for AnnotationTarget
impl Unpin for AnnotationTarget
impl UnsafeUnpin for AnnotationTarget
impl UnwindSafe for AnnotationTarget
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more