pub struct AnnotationSpec {
pub subtype: AnnotationType,
pub rect: [f32; 4],
pub contents: Option<String>,
pub color: Option<Vec<f32>>,
pub flags: AnnotationFlags,
pub quad_points: Option<Vec<f32>>,
}Expand description
Specification for a new annotation.
Fields§
§subtype: AnnotationTypeThe annotation subtype.
rect: [f32; 4]The annotation rectangle [x1, y1, x2, y2].
contents: Option<String>Optional text contents.
color: Option<Vec<f32>>Optional color components (RGB: 3, CMYK: 4, Gray: 1).
flags: AnnotationFlagsAnnotation flags.
quad_points: Option<Vec<f32>>Optional quad points (for markup annotations).
Trait Implementations§
Source§impl Clone for AnnotationSpec
impl Clone for AnnotationSpec
Source§fn clone(&self) -> AnnotationSpec
fn clone(&self) -> AnnotationSpec
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 moreAuto Trait Implementations§
impl Freeze for AnnotationSpec
impl RefUnwindSafe for AnnotationSpec
impl Send for AnnotationSpec
impl Sync for AnnotationSpec
impl Unpin for AnnotationSpec
impl UnsafeUnpin for AnnotationSpec
impl UnwindSafe for AnnotationSpec
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