pub struct PbLink {
pub cid: Cid,
pub name: Option<String>,
pub size: Option<u64>,
}Expand description
A protobuf ipld link.
Fields§
§cid: CidContent identifier.
name: Option<String>Name of the link.
size: Option<u64>Size of the data.
Trait Implementations§
Source§impl<'a> MessageRead<'a> for PbLink
impl<'a> MessageRead<'a> for PbLink
Source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self by reading from the given bytes
via the given reader. Read moreSource§impl MessageWrite for PbLink
impl MessageWrite for PbLink
impl Eq for PbLink
impl StructuralPartialEq for PbLink
Auto Trait Implementations§
impl Freeze for PbLink
impl RefUnwindSafe for PbLink
impl Send for PbLink
impl Sync for PbLink
impl Unpin for PbLink
impl UnwindSafe for PbLink
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