pub struct ObjectSigns { /* private fields */ }
Implementations§
Source§impl ObjectSigns
impl ObjectSigns
pub fn new() -> ObjectSignsBuilder
pub fn is_desc_signs_empty(&self) -> bool
pub fn is_body_signs_empty(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn desc_signs(&self) -> Option<&Vec<Signature>>
pub fn body_signs(&self) -> Option<&Vec<Signature>>
pub fn set_desc_sign(&mut self, sign: Signature)
pub fn set_body_sign(&mut self, sign: Signature)
pub fn push_desc_sign(&mut self, sign: Signature)
pub fn push_body_sign(&mut self, sign: Signature)
pub fn clear_desc_signs(&mut self)
pub fn clear_body_signs(&mut self)
pub fn latest_body_sign_time(&self) -> u64
pub fn latest_desc_sign_time(&self) -> u64
pub fn latest_sign_time(&self) -> u64
pub fn merge(&mut self, other: &ObjectSigns) -> usize
pub fn merge_ex(&mut self, other: &ObjectSigns, desc: bool, body: bool) -> usize
Trait Implementations§
Source§impl Clone for ObjectSigns
impl Clone for ObjectSigns
Source§fn clone(&self) -> ObjectSigns
fn clone(&self) -> ObjectSigns
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObjectSigns
impl Debug for ObjectSigns
Source§impl Default for ObjectSigns
impl Default for ObjectSigns
Source§impl ObjectFormat for ObjectSigns
impl ObjectFormat for ObjectSigns
fn format_json(&self) -> Value
Source§impl<'de> RawDecodeWithContext<'de, &NamedObjectContext> for ObjectSigns
impl<'de> RawDecodeWithContext<'de, &NamedObjectContext> for ObjectSigns
fn raw_decode_with_context( buf: &'de [u8], ctx: &NamedObjectContext, ) -> BuckyResult<(Self, &'de [u8])>
Source§impl RawEncodeWithContext<NamedObjectContext> for ObjectSigns
impl RawEncodeWithContext<NamedObjectContext> for ObjectSigns
fn raw_measure_with_context( &self, ctx: &mut NamedObjectContext, purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<usize>
fn raw_encode_with_context<'a>( &self, buf: &'a mut [u8], ctx: &mut NamedObjectContext, purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode_with_context<'a>( &self, buf: &'a mut [u8], context: &mut Context, purpose: &Option<RawEncodePurpose>, ) -> BuckyResult<&'a [u8]>
Auto Trait Implementations§
impl Freeze for ObjectSigns
impl RefUnwindSafe for ObjectSigns
impl Send for ObjectSigns
impl Sync for ObjectSigns
impl Unpin for ObjectSigns
impl UnwindSafe for ObjectSigns
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more