Struct rocfl::ocfl::VersionDetails
source · [−]pub struct VersionDetails {
pub version_num: VersionNum,
pub created: DateTime<Local>,
pub user_name: Option<String>,
pub user_address: Option<String>,
pub message: Option<String>,
}
Expand description
Metadata about a version
Fields
version_num: VersionNum
The version number of the version
created: DateTime<Local>
When the version was created
user_name: Option<String>
The name of the person who created the version
user_address: Option<String>
The address of the person who created the version
message: Option<String>
A description of the version
Implementations
sourceimpl VersionDetails
impl VersionDetails
sourcepub fn new(version_num: VersionNum, version: &Version) -> Self
pub fn new(version_num: VersionNum, version: &Version) -> Self
Creates VersionDetails
by cloning the input.
sourcepub fn from_version(version_num: VersionNum, version: Version) -> Self
pub fn from_version(version_num: VersionNum, version: Version) -> Self
Creates VersionDetails
by consuming the input.
Trait Implementations
sourceimpl Clone for VersionDetails
impl Clone for VersionDetails
sourcefn clone(&self) -> VersionDetails
fn clone(&self) -> VersionDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VersionDetails
impl Debug for VersionDetails
sourceimpl PartialEq<VersionDetails> for VersionDetails
impl PartialEq<VersionDetails> for VersionDetails
sourcefn eq(&self, other: &VersionDetails) -> bool
fn eq(&self, other: &VersionDetails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VersionDetails) -> bool
fn ne(&self, other: &VersionDetails) -> bool
This method tests for !=
.
impl Eq for VersionDetails
impl StructuralEq for VersionDetails
impl StructuralPartialEq for VersionDetails
Auto Trait Implementations
impl RefUnwindSafe for VersionDetails
impl Send for VersionDetails
impl Sync for VersionDetails
impl Unpin for VersionDetails
impl UnwindSafe for VersionDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more