pub struct Metadata { /* private fields */ }Expand description
Document metadata.
Implementations§
Source§impl Metadata
impl Metadata
pub fn new() -> Self
pub fn title(&self) -> Option<&str>
pub fn set_title(&mut self, value: &str) -> &mut Self
pub fn subject(&self) -> Option<&str>
pub fn set_subject(&mut self, value: &str) -> &mut Self
pub fn keywords(&self) -> Option<&str>
pub fn set_keywords(&mut self, value: &str) -> &mut Self
pub fn creator(&self) -> Option<&str>
pub fn set_creator(&mut self, value: &str) -> &mut Self
pub fn producer(&self) -> Option<&str>
pub fn set_producer(&mut self, value: &str) -> &mut Self
pub fn insert(&mut self, key: &str, value: &str) -> &mut Self
pub fn get(&self, key: &str) -> Option<&str>
pub fn iter(&self) -> impl Iterator<Item = (&str, &str)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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