Struct cyfs_lib::NONSlimObjectInfo
source · [−]pub struct NONSlimObjectInfo {
pub object_id: ObjectId,
pub object_raw: Option<Vec<u8>>,
pub object: Option<Arc<AnyNamedObject>>,
}
Fields
object_id: ObjectId
object_raw: Option<Vec<u8>>
object: Option<Arc<AnyNamedObject>>
Implementations
sourceimpl NONSlimObjectInfo
impl NONSlimObjectInfo
pub fn new(
object_id: ObjectId,
object_raw: Option<Vec<u8>>,
object: Option<Arc<AnyNamedObject>>
) -> Self
pub fn decode(&mut self) -> BuckyResult<()>
pub fn verify(&self) -> BuckyResult<()>
pub fn decode_and_verify(&mut self) -> BuckyResult<()>
Trait Implementations
sourceimpl Clone for NONSlimObjectInfo
impl Clone for NONSlimObjectInfo
sourcefn clone(&self) -> NONSlimObjectInfo
fn clone(&self) -> NONSlimObjectInfo
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 more
sourceimpl Debug for NONSlimObjectInfo
impl Debug for NONSlimObjectInfo
sourceimpl JsonCodec<NONSlimObjectInfo> for NONSlimObjectInfo
impl JsonCodec<NONSlimObjectInfo> for NONSlimObjectInfo
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
Auto Trait Implementations
impl RefUnwindSafe for NONSlimObjectInfo
impl Send for NONSlimObjectInfo
impl Sync for NONSlimObjectInfo
impl Unpin for NONSlimObjectInfo
impl UnwindSafe for NONSlimObjectInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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