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
sourceimpl<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>>
sourceimpl NamedObjectBuilder<ObjectMapDescContent, ObjectMapBodyContent>
impl NamedObjectBuilder<ObjectMapDescContent, ObjectMapBodyContent>
pub fn content_type(&self) -> ObjectMapSimpleContentType
pub fn class(self, class: ObjectMapClass) -> Self
Trait Implementations
sourceimpl<DC: Clone, BC: Clone> Clone for NamedObjectBuilder<DC, BC>where
DC: RawEncode + DescContent + Sync + Send + Clone,
BC: Sync + Send + Clone + RawEncode + BodyContent,
impl<DC: Clone, BC: Clone> Clone for NamedObjectBuilder<DC, BC>where
DC: RawEncode + DescContent + Sync + Send + Clone,
BC: Sync + Send + Clone + RawEncode + BodyContent,
sourcefn clone(&self) -> NamedObjectBuilder<DC, BC>
fn clone(&self) -> NamedObjectBuilder<DC, BC>
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<DC, BC> RefUnwindSafe for NamedObjectBuilder<DC, BC>where
BC: RefUnwindSafe,
DC: RefUnwindSafe,
<DC as DescContent>::AreaType: RefUnwindSafe,
<DC as DescContent>::AuthorType: RefUnwindSafe,
<DC as DescContent>::OwnerType: RefUnwindSafe,
<DC as DescContent>::PublicKeyType: RefUnwindSafe,
impl<DC, BC> Send for NamedObjectBuilder<DC, BC>
impl<DC, BC> Sync for NamedObjectBuilder<DC, BC>
impl<DC, BC> Unpin for NamedObjectBuilder<DC, BC>where
BC: Unpin,
DC: Unpin,
<DC as DescContent>::AreaType: Unpin,
<DC as DescContent>::AuthorType: Unpin,
<DC as DescContent>::OwnerType: Unpin,
<DC as DescContent>::PublicKeyType: Unpin,
impl<DC, BC> UnwindSafe for NamedObjectBuilder<DC, BC>where
BC: UnwindSafe,
DC: UnwindSafe,
<DC as DescContent>::AreaType: UnwindSafe,
<DC as DescContent>::AuthorType: UnwindSafe,
<DC as DescContent>::OwnerType: UnwindSafe,
<DC as DescContent>::PublicKeyType: 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