pub struct DocumentViewValue { /* private fields */ }Expand description
The current value of a document fiew field as well as the id of the operation it came from.
Implementations§
Source§impl DocumentViewValue
impl DocumentViewValue
Sourcepub fn new(operation_id: &OperationId, value: &OperationValue) -> Self
pub fn new(operation_id: &OperationId, value: &OperationValue) -> Self
Returns a DocumentViewValue constructed from an OperationId and OperationValue.
Sourcepub fn id(&self) -> &OperationId
pub fn id(&self) -> &OperationId
Get the OperationId of this document value.
Sourcepub fn value(&self) -> &OperationValue
pub fn value(&self) -> &OperationValue
Get the OperationValue of this document value.
Trait Implementations§
Source§impl Clone for DocumentViewValue
impl Clone for DocumentViewValue
Source§fn clone(&self) -> DocumentViewValue
fn clone(&self) -> DocumentViewValue
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 DocumentViewValue
impl Debug for DocumentViewValue
Source§impl PartialEq for DocumentViewValue
impl PartialEq for DocumentViewValue
impl StructuralPartialEq for DocumentViewValue
Auto Trait Implementations§
impl Freeze for DocumentViewValue
impl RefUnwindSafe for DocumentViewValue
impl Send for DocumentViewValue
impl Sync for DocumentViewValue
impl Unpin for DocumentViewValue
impl UnwindSafe for DocumentViewValue
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more