pub struct ObjectId(_);
Implementations§
source§impl ObjectId
impl ObjectId
pub fn obj_type_code(&self) -> ObjectTypeCode
pub fn info(&self) -> ObjectIdInfo<'_>
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn new(inner: GenericArray<u8, U32>) -> Self
pub fn clone_from_slice(slice: &[u8]) -> BuckyResult<Self>
pub fn to_string(&self) -> String
pub fn to_hash_value(&self) -> HashValue
pub fn from_base58(s: &str) -> BuckyResult<Self>
pub fn to_base36(&self) -> String
pub fn from_base36(s: &str) -> BuckyResult<Self>
pub fn object_category(&self) -> ObjectCategory
pub fn is_data(&self) -> bool
pub fn is_standard_object(&self) -> bool
pub fn is_core_object(&self) -> bool
pub fn is_dec_app_object(&self) -> bool
pub fn distance_of(&self, other: &Self) -> ObjectIdDistance
pub fn data_len(&self) -> u8
pub fn data(&self) -> &[u8] ⓘ
pub fn data_as_utf8_string(&self) -> BuckyResult<&str>
pub fn data_as_utf8_string_unchecked(&self) -> &str
pub fn is_chunk_id(&self) -> bool
pub fn as_chunk_id(&self) -> &ChunkId
pub fn as_named_object_id<T: ObjectType>(&self) -> &NamedObjectId<T>
pub fn is_default(&self) -> bool
Trait Implementations§
source§impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ObjectId
impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ObjectId
source§impl<T: ObjectType> AsRef<ObjectId> for NamedObjectId<T>
impl<T: ObjectType> AsRef<ObjectId> for NamedObjectId<T>
source§impl<'de> Deserialize<'de> for ObjectId
impl<'de> Deserialize<'de> for ObjectId
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 From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ObjectId
impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ObjectId
source§impl From<ObjectId> for SetIteratorPostion
impl From<ObjectId> for SetIteratorPostion
source§impl From<SetIteratorPostion> for ObjectId
impl From<SetIteratorPostion> for ObjectId
source§fn from(value: SetIteratorPostion) -> Self
fn from(value: SetIteratorPostion) -> Self
Converts to this type from the input type.
source§impl<T: ObjectType> Into<ObjectId> for NamedObjectId<T>
impl<T: ObjectType> Into<ObjectId> for NamedObjectId<T>
source§impl IntoObjectMapContentItem for ObjectId
impl IntoObjectMapContentItem for ObjectId
fn into_content(self, key: Option<&str>) -> ObjectMapContentItem
source§impl Ord for ObjectId
impl Ord for ObjectId
source§impl<T: ObjectType> PartialEq<NamedObjectId<T>> for ObjectId
impl<T: ObjectType> PartialEq<NamedObjectId<T>> for ObjectId
source§fn eq(&self, other: &NamedObjectId<T>) -> bool
fn eq(&self, other: &NamedObjectId<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: ObjectType> PartialEq<ObjectId> for NamedObjectId<T>
impl<T: ObjectType> PartialEq<ObjectId> for NamedObjectId<T>
source§impl PartialEq<ObjectId> for ObjectId
impl PartialEq<ObjectId> for ObjectId
source§impl PartialOrd<ObjectId> for ObjectId
impl PartialOrd<ObjectId> for ObjectId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more