Struct cyfs_base::NamedObjectBuilder
source · pub struct NamedObjectBuilder<DC, BC>where
DC: RawEncode + DescContent + Sync + Send + Clone,
BC: Sync + Send + Clone + RawEncode + BodyContent,{ /* private fields */ }
Implementations§
source§impl<DC, BC> NamedObjectBuilder<DC, BC>where
DC: RawEncode + DescContent + Sync + Send + Clone,
BC: Sync + Send + Clone + RawEncode + BodyContent,
impl<DC, BC> NamedObjectBuilder<DC, BC>where DC: RawEncode + DescContent + Sync + Send + Clone, BC: Sync + Send + Clone + RawEncode + BodyContent,
pub fn new(desc_content: DC, body_content: BC) -> Self
pub fn desc_builder(&self) -> &NamedObjectDescBuilder<DC>
pub fn mut_desc_builder(&mut self) -> &mut NamedObjectDescBuilder<DC>
pub fn body_builder(&self) -> &ObjectMutBodyBuilder<BC, NamedObjType<DC, BC>>
pub fn dec_id(self, dec_id: ObjectId) -> Self
pub fn option_dec_id(self, dec_id: Option<ObjectId>) -> Self
pub fn ref_objects(self, ref_objects: Vec<ObjectLink>) -> Self
pub fn option_ref_objects(self, ref_objects: Option<Vec<ObjectLink>>) -> Self
pub fn prev(self, prev: ObjectId) -> Self
pub fn option_prev(self, prev: Option<ObjectId>) -> Self
pub fn create_timestamp(self, create_timestamp: HashValue) -> Self
pub fn option_create_timestamp( self, create_timestamp: Option<HashValue> ) -> Self
pub fn no_create_time(self) -> Self
pub fn create_time(self, create_time: u64) -> Self
pub fn option_create_time(self, create_time: Option<u64>) -> Self
pub fn expired_time(self, expired_time: u64) -> Self
pub fn option_expired_time(self, expired_time: Option<u64>) -> Self
pub fn owner(self, owner: <DC::OwnerType as OwnerObj>::Inner) -> Self
pub fn option_owner(self, owner: DC::OwnerType) -> Self
pub fn area(self, area: <DC::AreaType as AreaObj>::Inner) -> Self
pub fn option_area(self, area: DC::AreaType) -> Self
pub fn public_key(self, public_key: DC::PublicKeyType) -> Self
pub fn option_public_key(self, public_key: Option<DC::PublicKeyType>) -> Self
pub fn update_time(self, update_time: u64) -> Self
pub fn prev_version(self, prev_version: HashValue) -> Self
pub fn user_data(self, user_data: Vec<u8>) -> Self
pub fn set_desc_sign(self, sign: Signature) -> Self
pub fn set_body_sign(self, sign: Signature) -> Self
pub fn push_desc_sign(self, sign: Signature) -> Self
pub fn push_body_sign(self, sign: Signature) -> Self
pub fn nonce(self, nonce: u128) -> Self
pub fn build(self) -> NamedObjectBase<NamedObjType<DC, BC>>
source§impl NamedObjectBuilder<ObjectMapDescContent, ObjectMapBodyContent>
impl NamedObjectBuilder<ObjectMapDescContent, ObjectMapBodyContent>
pub fn content_type(&self) -> ObjectMapSimpleContentType
pub fn class(self, class: ObjectMapClass) -> Self
Trait Implementations§
source§impl<DC, BC> Clone for NamedObjectBuilder<DC, BC>where
DC: RawEncode + DescContent + Sync + Send + Clone + Clone,
BC: Sync + Send + Clone + RawEncode + BodyContent + Clone,
impl<DC, BC> Clone for NamedObjectBuilder<DC, BC>where DC: RawEncode + DescContent + Sync + Send + Clone + Clone, BC: Sync + Send + Clone + RawEncode + BodyContent + Clone,
source§fn clone(&self) -> NamedObjectBuilder<DC, BC>
fn clone(&self) -> NamedObjectBuilder<DC, BC>
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