Struct cyfs_base::ObjectMutBody
source · pub struct ObjectMutBody<B, O>where
O: ObjectType,
B: BodyContent,{ /* private fields */ }
Implementations§
source§impl<B, O> ObjectMutBody<B, O>where
B: BodyContent,
O: ObjectType,
impl<B, O> ObjectMutBody<B, O>where B: BodyContent, O: ObjectType,
pub fn prev_version(&self) -> &Option<HashValue>
pub fn update_time(&self) -> u64
pub fn content(&self) -> &B
pub fn into_content(self) -> B
pub fn user_data(&self) -> &Option<Vec<u8>>
pub fn set_update_time(&mut self, value: u64)
pub fn increase_update_time(&mut self, value: u64)
pub fn content_mut(&mut self) -> &mut B
pub fn set_userdata(&mut self, user_data: &[u8])
source§impl<B, O> ObjectMutBody<B, O>where
B: RawEncode + BodyContent,
O: ObjectType,
impl<B, O> ObjectMutBody<B, O>where B: RawEncode + BodyContent, O: ObjectType,
pub fn calculate_hash(&self) -> BuckyResult<HashValue>
Trait Implementations§
source§impl<B, O> Clone for ObjectMutBody<B, O>where
O: ObjectType + Clone,
B: BodyContent + Clone,
impl<B, O> Clone for ObjectMutBody<B, O>where O: ObjectType + Clone, B: BodyContent + Clone,
source§fn clone(&self) -> ObjectMutBody<B, O>
fn clone(&self) -> ObjectMutBody<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