#[non_exhaustive]pub struct AtomPerson {
pub name: String,
pub email: String,
pub uri: String,
}Expand description
A person reference (<author> / <contributor>) per RFC 4287 §3.2.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringHuman-readable name (required by the spec).
email: StringOptional email address.
uri: StringOptional homepage URI.
Implementations§
Source§impl AtomPerson
impl AtomPerson
Trait Implementations§
Source§impl Clone for AtomPerson
impl Clone for AtomPerson
Source§fn clone(&self) -> AtomPerson
fn clone(&self) -> AtomPerson
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 moreSource§impl Debug for AtomPerson
impl Debug for AtomPerson
Source§impl Default for AtomPerson
impl Default for AtomPerson
Source§fn default() -> AtomPerson
fn default() -> AtomPerson
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AtomPerson
impl<'de> Deserialize<'de> for AtomPerson
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
impl Eq for AtomPerson
Source§impl PartialEq for AtomPerson
impl PartialEq for AtomPerson
Source§fn eq(&self, other: &AtomPerson) -> bool
fn eq(&self, other: &AtomPerson) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AtomPerson
impl Serialize for AtomPerson
impl StructuralPartialEq for AtomPerson
Auto Trait Implementations§
impl Freeze for AtomPerson
impl RefUnwindSafe for AtomPerson
impl Send for AtomPerson
impl Sync for AtomPerson
impl Unpin for AtomPerson
impl UnsafeUnpin for AtomPerson
impl UnwindSafe for AtomPerson
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