pub struct PdfAnnotation { /* private fields */ }Implementations§
Source§impl PdfAnnotation
impl PdfAnnotation
pub fn new(bounds: PdfRect, annotation_type: &str) -> Result<Self>
pub fn info(&self) -> Result<PdfAnnotationInfo>
pub fn set_contents(&self, value: Option<&str>) -> Result<()>
pub fn set_highlighted(&self, value: bool)
pub fn border(&self) -> Option<PdfBorder>
pub fn set_border(&self, border: Option<&PdfBorder>) -> Result<()>
pub fn action(&self) -> Option<PdfAction>
pub fn set_action<A: PdfActionLike>(&self, action: Option<&A>) -> Result<()>
pub fn clear_action(&self) -> Result<()>
pub fn action_url(&self) -> Option<PdfActionUrl>
pub fn set_action_url(&self, action: Option<&PdfActionUrl>) -> Result<()>
pub fn action_goto(&self) -> Option<PdfActionGoTo>
pub fn set_action_goto(&self, action: Option<&PdfActionGoTo>) -> Result<()>
Trait Implementations§
Source§impl Clone for PdfAnnotation
impl Clone for PdfAnnotation
Source§fn clone(&self) -> PdfAnnotation
fn clone(&self) -> PdfAnnotation
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 moreAuto Trait Implementations§
impl Freeze for PdfAnnotation
impl RefUnwindSafe for PdfAnnotation
impl !Send for PdfAnnotation
impl !Sync for PdfAnnotation
impl Unpin for PdfAnnotation
impl UnsafeUnpin for PdfAnnotation
impl UnwindSafe for PdfAnnotation
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