pub struct DocumentVersion(/* private fields */);Expand description
A document version number (integer 1–999).
Implementations§
Source§impl DocumentVersion
impl DocumentVersion
Sourcepub fn new(v: u32) -> Result<Self, RedispatchXmlError>
pub fn new(v: u32) -> Result<Self, RedispatchXmlError>
Create a new DocumentVersion, returning an error if outside 1–999.
Trait Implementations§
Source§impl Clone for DocumentVersion
impl Clone for DocumentVersion
Source§fn clone(&self) -> DocumentVersion
fn clone(&self) -> DocumentVersion
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 moreimpl Copy for DocumentVersion
Source§impl Debug for DocumentVersion
impl Debug for DocumentVersion
Source§impl<'de> Deserialize<'de> for DocumentVersion
impl<'de> Deserialize<'de> for DocumentVersion
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DocumentVersion
impl Display for DocumentVersion
impl Eq for DocumentVersion
Source§impl Hash for DocumentVersion
impl Hash for DocumentVersion
Source§impl Ord for DocumentVersion
impl Ord for DocumentVersion
Source§fn cmp(&self, other: &DocumentVersion) -> Ordering
fn cmp(&self, other: &DocumentVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DocumentVersion
impl PartialEq for DocumentVersion
Source§fn eq(&self, other: &DocumentVersion) -> bool
fn eq(&self, other: &DocumentVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DocumentVersion
impl PartialOrd for DocumentVersion
Source§impl Serialize for DocumentVersion
impl Serialize for DocumentVersion
impl StructuralPartialEq for DocumentVersion
Auto Trait Implementations§
impl Freeze for DocumentVersion
impl RefUnwindSafe for DocumentVersion
impl Send for DocumentVersion
impl Sync for DocumentVersion
impl Unpin for DocumentVersion
impl UnsafeUnpin for DocumentVersion
impl UnwindSafe for DocumentVersion
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