pub struct ArchivedEventIndexwhere
[u8; 32]: Archive,
u64: Archive,
u16: Archive,
Vec<(Vec<u8>, Vec<u8>)>: Archive,
Option<u64>: Archive,
Option<[u8; 32]>: Archive,{ /* private fields */ }
Expand description
An archived EventIndex
Implementations§
Source§impl ArchivedEventIndex
impl ArchivedEventIndex
pub fn id(&self) -> &Archived<[u8; 32]>
pub fn pubkey(&self) -> &Archived<[u8; 32]>
pub fn created_at(&self) -> u64
pub fn kind(&self) -> u16
pub fn expiration(&self) -> Option<&u64>
pub fn delegator(&self) -> Option<&Archived<[u8; 32]>>
pub fn is_ephemeral(&self) -> bool
pub fn is_expired(&self, now: u64) -> bool
Auto Trait Implementations§
impl Freeze for ArchivedEventIndex
impl RefUnwindSafe for ArchivedEventIndex
impl Send for ArchivedEventIndex
impl Sync for ArchivedEventIndex
impl !Unpin for ArchivedEventIndex
impl UnwindSafe for ArchivedEventIndex
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.