Struct cyfs_base::ObjectMutBodyBuilder
source · pub struct ObjectMutBodyBuilder<B, O>where
O: ObjectType,
B: BodyContent,{ /* private fields */ }
Implementations§
source§impl<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§
source§impl<B, O> Clone for ObjectMutBodyBuilder<B, O>where
O: ObjectType + Clone,
B: BodyContent + Clone,
impl<B, O> Clone for ObjectMutBodyBuilder<B, O>where O: ObjectType + Clone, B: BodyContent + Clone,
source§fn clone(&self) -> ObjectMutBodyBuilder<B, O>
fn clone(&self) -> ObjectMutBodyBuilder<B, O>
Returns a copy 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 more