pub struct ReadCapability {
pub root_reference: BlockReference,
pub root_key: BlockKey,
pub level: u8,
pub block_size: usize,
}Fields§
§root_reference: BlockReference§root_key: BlockKey§level: u8§block_size: usizeImplementations§
Source§impl ReadCapability
impl ReadCapability
pub fn from_rk_pair( rk_pair: RKPair, level: u8, block_size: usize, ) -> ReadCapability
pub fn binary(&self) -> Vec<u8> ⓘ
pub fn from_binary(buf: &[u8]) -> Option<ReadCapability>
pub fn urn(&self) -> String
Trait Implementations§
Source§impl Clone for ReadCapability
impl Clone for ReadCapability
Source§fn clone(&self) -> ReadCapability
fn clone(&self) -> ReadCapability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadCapability
impl Debug for ReadCapability
Source§impl<'de> Deserialize<'de> for ReadCapability
impl<'de> Deserialize<'de> for ReadCapability
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 Hash for ReadCapability
impl Hash for ReadCapability
Source§impl Ord for ReadCapability
impl Ord for ReadCapability
Source§fn cmp(&self, other: &ReadCapability) -> Ordering
fn cmp(&self, other: &ReadCapability) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReadCapability
impl PartialEq for ReadCapability
Source§fn eq(&self, other: &ReadCapability) -> bool
fn eq(&self, other: &ReadCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ReadCapability
impl PartialOrd for ReadCapability
Source§impl Serialize for ReadCapability
impl Serialize for ReadCapability
impl Copy for ReadCapability
impl Eq for ReadCapability
impl StructuralPartialEq for ReadCapability
Auto Trait Implementations§
impl Freeze for ReadCapability
impl RefUnwindSafe for ReadCapability
impl Send for ReadCapability
impl Sync for ReadCapability
impl Unpin for ReadCapability
impl UnsafeUnpin for ReadCapability
impl UnwindSafe for ReadCapability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more