Trait cyfs_base::ObjectDesc
source · pub trait ObjectDesc {
Show 14 methods
// Required methods
fn obj_type(&self) -> u16;
fn calculate_id(&self) -> ObjectId;
fn dec_id(&self) -> &Option<ObjectId>;
fn ref_objs(&self) -> &Option<Vec<ObjectLink>>;
fn prev(&self) -> &Option<ObjectId>;
fn create_timestamp(&self) -> &Option<HashValue>;
fn create_time(&self) -> u64;
fn option_create_time(&self) -> Option<u64>;
fn expired_time(&self) -> Option<u64>;
// Provided methods
fn obj_type_code(&self) -> ObjectTypeCode { ... }
fn is_standard_object(&self) -> bool { ... }
fn is_core_object(&self) -> bool { ... }
fn is_dec_app_object(&self) -> bool { ... }
fn object_id(&self) -> ObjectId { ... }
}
Required Methods§
fn obj_type(&self) -> u16
fn calculate_id(&self) -> ObjectId
fn dec_id(&self) -> &Option<ObjectId>
fn ref_objs(&self) -> &Option<Vec<ObjectLink>>
fn prev(&self) -> &Option<ObjectId>
fn create_timestamp(&self) -> &Option<HashValue>
fn create_time(&self) -> u64
fn option_create_time(&self) -> Option<u64>
fn expired_time(&self) -> Option<u64>
Provided Methods§
fn obj_type_code(&self) -> ObjectTypeCode
fn is_standard_object(&self) -> bool
fn is_core_object(&self) -> bool
fn is_dec_app_object(&self) -> bool
fn object_id(&self) -> ObjectId
Implementors§
impl ObjectDesc for TypelessObjectDesc
impl<T> ObjectDesc for NamedObjectDesc<T>where T: DescContent + RawEncode, T::OwnerType: OwnerObj, T::AreaType: AreaObj, T::AuthorType: AuthorObj, T::PublicKeyType: PublicKeyObj,
NamedObjectDesc 的 ObjectDesc 自动实现
对任意 T: DescContent
为 NamedObjectDesc