Struct cyfs_base::ObjectMutBodyBuilder
source · [−]pub struct ObjectMutBodyBuilder<B, O>where
O: ObjectType,
B: BodyContent,{ /* private fields */ }
Implementations
sourceimpl<B, O> ObjectMutBodyBuilder<B, O>where
B: BodyContent,
O: ObjectType,
impl<B, O> ObjectMutBodyBuilder<B, O>where
B: BodyContent,
O: ObjectType,
pub fn new(content: B) -> Self
pub fn update_time(self, value: u64) -> Self
pub fn option_update_time(self, value: Option<u64>) -> Self
pub fn prev_version(self, value: HashValue) -> Self
pub fn option_prev_version(self, value: Option<HashValue>) -> Self
pub fn user_data(self, value: Vec<u8>) -> Self
pub fn option_user_data(self, value: Option<Vec<u8>>) -> Self
pub fn build(self) -> ObjectMutBody<B, O>
Trait Implementations
sourceimpl<B: Clone, O: Clone> Clone for ObjectMutBodyBuilder<B, O>where
O: ObjectType,
B: BodyContent,
impl<B: Clone, O: Clone> Clone for ObjectMutBodyBuilder<B, O>where
O: ObjectType,
B: BodyContent,
sourcefn clone(&self) -> ObjectMutBodyBuilder<B, O>
fn clone(&self) -> ObjectMutBodyBuilder<B, O>
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 moreAuto Trait Implementations
impl<B, O> RefUnwindSafe for ObjectMutBodyBuilder<B, O>where
B: RefUnwindSafe,
O: RefUnwindSafe,
impl<B, O> Send for ObjectMutBodyBuilder<B, O>where
B: Send,
O: Send,
impl<B, O> Sync for ObjectMutBodyBuilder<B, O>where
B: Sync,
O: Sync,
impl<B, O> Unpin for ObjectMutBodyBuilder<B, O>where
B: Unpin,
O: Unpin,
impl<B, O> UnwindSafe for ObjectMutBodyBuilder<B, O>where
B: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more