pub struct CreatorInfo {
pub name: String,
pub email: Option<String>,
pub organization: Option<String>,
pub uri: Option<String>,
}Expand description
Information about the document creator.
Fields§
§name: StringCreator’s name.
email: Option<String>Creator’s email address.
organization: Option<String>Creator’s organization.
uri: Option<String>URI identifying the creator.
Implementations§
Source§impl CreatorInfo
impl CreatorInfo
Sourcepub fn with_email(self, email: impl Into<String>) -> Self
pub fn with_email(self, email: impl Into<String>) -> Self
Set the email address.
Sourcepub fn with_organization(self, org: impl Into<String>) -> Self
pub fn with_organization(self, org: impl Into<String>) -> Self
Set the organization.
Trait Implementations§
Source§impl Clone for CreatorInfo
impl Clone for CreatorInfo
Source§fn clone(&self) -> CreatorInfo
fn clone(&self) -> CreatorInfo
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 moreSource§impl Debug for CreatorInfo
impl Debug for CreatorInfo
Source§impl<'de> Deserialize<'de> for CreatorInfo
impl<'de> Deserialize<'de> for CreatorInfo
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 PartialEq for CreatorInfo
impl PartialEq for CreatorInfo
Source§impl Serialize for CreatorInfo
impl Serialize for CreatorInfo
impl Eq for CreatorInfo
impl StructuralPartialEq for CreatorInfo
Auto Trait Implementations§
impl Freeze for CreatorInfo
impl RefUnwindSafe for CreatorInfo
impl Send for CreatorInfo
impl Sync for CreatorInfo
impl Unpin for CreatorInfo
impl UnsafeUnpin for CreatorInfo
impl UnwindSafe for CreatorInfo
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.