Enum cyfs_base::AnyNamedObject
source · [−]pub enum AnyNamedObject {
Standard(StandardObject),
Core(TypelessCoreObject),
DECApp(TypelessDECAppObject),
}
Variants
Standard(StandardObject)
Core(TypelessCoreObject)
DECApp(TypelessDECAppObject)
Implementations
sourceimpl 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 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 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
sourceimpl AnyNamedObject
impl AnyNamedObject
sourceimpl AnyNamedObject
impl AnyNamedObject
sourceimpl AnyNamedObject
impl AnyNamedObject
pub fn as_simple_group(&self) -> &SimpleGroup
pub fn into_simple_group(self) -> SimpleGroup
sourceimpl AnyNamedObject
impl AnyNamedObject
pub fn as_object_map(&self) -> &ObjectMap
pub fn into_object_map(self) -> ObjectMap
Trait Implementations
sourceimpl Clone for AnyNamedObject
impl Clone for AnyNamedObject
sourcefn clone(&self) -> AnyNamedObject
fn clone(&self) -> AnyNamedObject
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 moresourceimpl Debug for AnyNamedObject
impl Debug for AnyNamedObject
sourceimpl<'de> Deserialize<'de> for AnyNamedObject
impl<'de> Deserialize<'de> for AnyNamedObject
sourcefn 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
sourceimpl Into<AnyNamedObject> for Arc<AnyNamedObject>
impl Into<AnyNamedObject> for Arc<AnyNamedObject>
sourcefn into(self) -> AnyNamedObject
fn into(self) -> AnyNamedObject
Converts this type into the (usually inferred) input type.
sourceimpl ObjectFormat for AnyNamedObject
impl ObjectFormat for AnyNamedObject
fn format_json(&self) -> Value
sourceimpl<'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])>
sourceimpl 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>>
sourceimpl Serialize for AnyNamedObject
impl Serialize for AnyNamedObject
sourceimpl 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.
sourcefn try_from(value: TypelessAnyObject) -> Result<Self, Self::Error>
fn try_from(value: TypelessAnyObject) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AnyNamedObject
impl Send for AnyNamedObject
impl Sync for AnyNamedObject
impl Unpin for AnyNamedObject
impl UnwindSafe for AnyNamedObject
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