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,

source

pub fn new(desc_content: DC, body_content: BC) -> Self

source

pub fn desc_builder(&self) -> &NamedObjectDescBuilder<DC>

source

pub fn mut_desc_builder(&mut self) -> &mut NamedObjectDescBuilder<DC>

source

pub fn body_builder(&self) -> &ObjectMutBodyBuilder<BC, NamedObjType<DC, BC>>

source

pub fn dec_id(self, dec_id: ObjectId) -> Self

source

pub fn option_dec_id(self, dec_id: Option<ObjectId>) -> Self

source

pub fn ref_objects(self, ref_objects: Vec<ObjectLink>) -> Self

source

pub fn option_ref_objects(self, ref_objects: Option<Vec<ObjectLink>>) -> Self

source

pub fn prev(self, prev: ObjectId) -> Self

source

pub fn option_prev(self, prev: Option<ObjectId>) -> Self

source

pub fn create_timestamp(self, create_timestamp: HashValue) -> Self

source

pub fn option_create_timestamp( self, create_timestamp: Option<HashValue> ) -> Self

source

pub fn no_create_time(self) -> Self

source

pub fn create_time(self, create_time: u64) -> Self

source

pub fn option_create_time(self, create_time: Option<u64>) -> Self

source

pub fn expired_time(self, expired_time: u64) -> Self

source

pub fn option_expired_time(self, expired_time: Option<u64>) -> Self

source

pub fn owner(self, owner: <DC::OwnerType as OwnerObj>::Inner) -> Self

source

pub fn option_owner(self, owner: DC::OwnerType) -> Self

source

pub fn area(self, area: <DC::AreaType as AreaObj>::Inner) -> Self

source

pub fn option_area(self, area: DC::AreaType) -> Self

source

pub fn author(self, author: <DC::AuthorType as AuthorObj>::Inner) -> Self

source

pub fn option_author(self, author: DC::AuthorType) -> Self

source

pub fn public_key(self, public_key: DC::PublicKeyType) -> Self

source

pub fn option_public_key(self, public_key: Option<DC::PublicKeyType>) -> Self

source

pub fn update_time(self, update_time: u64) -> Self

source

pub fn prev_version(self, prev_version: HashValue) -> Self

source

pub fn user_data(self, user_data: Vec<u8>) -> Self

source

pub fn set_desc_sign(self, sign: Signature) -> Self

source

pub fn set_body_sign(self, sign: Signature) -> Self

source

pub fn push_desc_sign(self, sign: Signature) -> Self

source

pub fn push_body_sign(self, sign: Signature) -> Self

source

pub fn nonce(self, nonce: u128) -> Self

source

pub fn build(self) -> NamedObjectBase<NamedObjType<DC, BC>>

source§

impl NamedObjectBuilder<ObjectMapDescContent, ObjectMapBodyContent>

source

pub fn content_type(&self) -> ObjectMapSimpleContentType

source

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,

source§

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)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V