Struct cyfs_lib::NONObjectInfo
source · pub struct NONObjectInfo {
pub object_id: ObjectId,
pub object_raw: Vec<u8>,
pub object: Option<Arc<AnyNamedObject>>,
}
Fields§
§object_id: ObjectId
§object_raw: Vec<u8>
§object: Option<Arc<AnyNamedObject>>
Implementations§
source§impl NONObjectInfo
impl NONObjectInfo
pub fn new( object_id: ObjectId, object_raw: Vec<u8>, object: Option<Arc<AnyNamedObject>> ) -> Self
pub fn new_from_object_raw(object_raw: Vec<u8>) -> BuckyResult<Self>
pub fn is_empty(&self) -> bool
pub fn object(&self) -> &Arc<AnyNamedObject>
pub fn object_if_none_then_decode(&self) -> BuckyResult<Cow<'_, AnyNamedObject>>
pub fn take_object(&mut self) -> Arc<AnyNamedObject>
pub fn clone_object(&self) -> Arc<AnyNamedObject>
pub fn try_decode(&mut self) -> BuckyResult<()>
pub fn decode(&mut self) -> BuckyResult<()>
pub fn verify(&self) -> BuckyResult<()>
pub fn decode_and_verify(&mut self) -> BuckyResult<()>
pub fn get_update_time(&mut self) -> BuckyResult<u64>
pub fn get_expired_time(&mut self) -> BuckyResult<Option<u64>>
Trait Implementations§
source§impl Clone for NONObjectInfo
impl Clone for NONObjectInfo
source§fn clone(&self) -> NONObjectInfo
fn clone(&self) -> NONObjectInfo
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 more