pub struct DrawnAnnotation {
pub annotation: Annotation,
pub drawn_color: String,
pub px: Vec<[f64; 2]>,
pub label_px: Option<PxRect>,
pub outside: bool,
}Expand description
An annotation as drawn: the request, plus where it landed in PNG pixels.
Fields§
§annotation: AnnotationThe annotation as given.
drawn_color: StringThe colour drawn, #RRGGBB.
px: Vec<[f64; 2]>The mark’s key points in PNG pixels: the point, the box corners, the vertices, the arrow’s tail and head, a line’s or band’s ends (one pair per card on a curve grid).
label_px: Option<PxRect>Where the label went, in PNG pixels.
outside: boolTrue when part of the mark lies outside what the picture shows (it is clipped).
Trait Implementations§
Source§impl Clone for DrawnAnnotation
impl Clone for DrawnAnnotation
Source§impl Debug for DrawnAnnotation
impl Debug for DrawnAnnotation
Source§impl<'de> Deserialize<'de> for DrawnAnnotation
impl<'de> Deserialize<'de> for DrawnAnnotation
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 DrawnAnnotation
impl JsonSchema for DrawnAnnotation
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DrawnAnnotation
impl PartialEq for DrawnAnnotation
Source§impl Serialize for DrawnAnnotation
impl Serialize for DrawnAnnotation
impl StructuralPartialEq for DrawnAnnotation
Auto Trait Implementations§
impl Freeze for DrawnAnnotation
impl RefUnwindSafe for DrawnAnnotation
impl Send for DrawnAnnotation
impl Sync for DrawnAnnotation
impl Unpin for DrawnAnnotation
impl UnsafeUnpin for DrawnAnnotation
impl UnwindSafe for DrawnAnnotation
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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