Enum cyfs_base::AnyNamedObject
source · pub enum AnyNamedObject {
Standard(StandardObject),
Core(TypelessCoreObject),
DECApp(TypelessDECAppObject),
}
Variants§
Implementations§
source§impl AnyNamedObject
impl AnyNamedObject
pub fn object_id(&self) -> ObjectId
pub fn calculate_id(&self) -> ObjectId
pub fn try_clone(&self) -> BuckyResult<Self>
pub fn obj_type(&self) -> u16
pub fn obj_type_code(&self) -> ObjectTypeCode
pub fn dec_id(&self) -> &Option<ObjectId>
pub fn owner(&self) -> &Option<ObjectId>
pub fn public_key(&self) -> Option<PublicKeyRef<'_>>
pub fn prev(&self) -> &Option<ObjectId>
pub fn ood_list(&self) -> BuckyResult<&Vec<DeviceId>>
pub fn ood_work_mode(&self) -> BuckyResult<OODWorkMode>
pub fn signs(&self) -> Option<&ObjectSigns>
pub fn signs_mut(&mut self) -> Option<&mut ObjectSigns>
pub fn desc_hash(&self) -> BuckyResult<HashValue>
pub fn has_body(&self) -> BuckyResult<bool>
pub fn body_hash(&self) -> BuckyResult<Option<HashValue>>
pub fn body_prev_version(&self) -> &Option<HashValue>
pub fn ref_objs(&self) -> Option<&Vec<ObjectLink>>
pub fn is_standard(&self) -> bool
pub fn is_core(&self) -> bool
pub fn is_dec(&self) -> bool
pub fn set_body_expect(&mut self, other: &Self)
pub fn set_body_update_time(&mut self, time: u64)
pub fn create_time(&self) -> u64
pub fn option_create_time(&self) -> Option<u64>
pub fn expired_time(&self) -> Option<u64>
pub fn update_time(&self) -> Option<u64>
pub fn get_update_time(&self) -> u64
pub fn get_full_update_time(&self) -> u64
pub fn nonce(&self) -> &Option<u128>
source§impl AnyNamedObject
impl AnyNamedObject
pub fn as_simple_group(&self) -> &SimpleGroup
pub fn into_simple_group(self) -> SimpleGroup
source§impl AnyNamedObject
impl AnyNamedObject
pub fn as_object_map(&self) -> &ObjectMap
pub fn into_object_map(self) -> ObjectMap
Trait Implementations§
source§impl Clone for AnyNamedObject
impl Clone for AnyNamedObject
source§fn clone(&self) -> AnyNamedObject
fn clone(&self) -> AnyNamedObject
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 moresource§impl Debug for AnyNamedObject
impl Debug for AnyNamedObject
source§impl<'de> Deserialize<'de> for AnyNamedObject
impl<'de> Deserialize<'de> for AnyNamedObject
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Into<AnyNamedObject> for Arc<AnyNamedObject>
impl Into<AnyNamedObject> for Arc<AnyNamedObject>
source§fn into(self) -> AnyNamedObject
fn into(self) -> AnyNamedObject
Converts this type into the (usually inferred) input type.
source§impl ObjectFormat for AnyNamedObject
impl ObjectFormat for AnyNamedObject
fn format_json(&self) -> Value
source§impl<'de> RawDecode<'de> for AnyNamedObject
impl<'de> RawDecode<'de> for AnyNamedObject
fn raw_decode(buf: &'de [u8]) -> Result<(Self, &'de [u8]), BuckyError>
fn raw_decode_with_option( buf: &'de [u8], _opt: &RawDecodeOption ) -> BuckyResult<(Self, &'de [u8])>
source§impl RawEncode for AnyNamedObject
impl RawEncode for AnyNamedObject
fn raw_measure(&self, purpose: &Option<RawEncodePurpose>) -> BuckyResult<usize>
fn raw_encode<'a>( &self, buf: &'a mut [u8], purpose: &Option<RawEncodePurpose> ) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode<'a>( &self, buf: &'a mut [u8], purpose: &Option<RawEncodePurpose> ) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
source§impl Serialize for AnyNamedObject
impl Serialize for AnyNamedObject
source§impl TryFrom<NamedObjectBase<TypelessObjectType<AnyTypeMark>>> for AnyNamedObject
impl TryFrom<NamedObjectBase<TypelessObjectType<AnyTypeMark>>> for AnyNamedObject
从 TypelessAnyObject 转成 AnyNamedObject
§type Error = BuckyError
type Error = BuckyError
The type returned in the event of a conversion error.