pub struct FreeTextAnnotation {
pub default_appearance: String,
pub justification: u32,
pub default_style: Option<String>,
pub rich_content: Option<String>,
pub callout_line: Option<Vec<f32>>,
pub intent: Option<String>,
pub line_ending: LineEnding,
pub rd: Option<Rect>,
}Expand description
A FreeText annotation.
Fields§
§default_appearance: StringThe default appearance string.
justification: u32Text justification (0=left, 1=center, 2=right).
default_style: Option<String>Default style string.
rich_content: Option<String>Rich text content.
callout_line: Option<Vec<f32>>Callout line points.
intent: Option<String>Intent.
line_ending: LineEndingLine ending style for callout.
rd: Option<Rect>Rectangle differences.
Implementations§
Source§impl FreeTextAnnotation
impl FreeTextAnnotation
Sourcepub fn from_annot(annot: &Annotation<'_>) -> Self
pub fn from_annot(annot: &Annotation<'_>) -> Self
Extract free text annotation properties.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FreeTextAnnotation
impl RefUnwindSafe for FreeTextAnnotation
impl Send for FreeTextAnnotation
impl Sync for FreeTextAnnotation
impl Unpin for FreeTextAnnotation
impl UnsafeUnpin for FreeTextAnnotation
impl UnwindSafe for FreeTextAnnotation
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> 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