pub struct Record { /* private fields */ }
Implementations§
source§impl Record
impl Record
pub fn sequence(&self) -> u64
pub fn validity_type(&self) -> ValidityType
pub fn validity(&self) -> Result<DateTime<FixedOffset>>
pub fn ttl(&self) -> u64
pub fn signature_v1(&self) -> bool
pub fn signature_v2(&self) -> bool
pub fn data(&self) -> Result<Data>
pub fn value(&self) -> Result<Cid>
pub fn verify(&self, peer_id: PeerId) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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