#[repr(C)]pub struct Entry<H, S>{
pub log_id: u64,
pub is_end_of_feed: bool,
pub payload_hash: YamfHash<H>,
pub payload_size: u64,
pub author: PublicKey,
pub seq_num: u64,
pub backlink: Option<YamfHash<H>>,
pub lipmaa_link: Option<YamfHash<H>>,
pub sig: Option<Signature<S>>,
}
Fields§
§log_id: u64
§is_end_of_feed: bool
§payload_hash: YamfHash<H>
§payload_size: u64
§seq_num: u64
§backlink: Option<YamfHash<H>>
§lipmaa_link: Option<YamfHash<H>>
§sig: Option<Signature<S>>
Implementations§
Source§impl<'a, H, S> Entry<H, S>
impl<'a, H, S> Entry<H, S>
pub fn encode(&self, out: &mut [u8]) -> Result<usize, Error>
pub fn encode_for_signing(&self, out: &mut [u8]) -> Result<usize, Error>
Sourcepub fn encode_for_signing_write<W: Write>(&self, w: W) -> Result<()>
pub fn encode_for_signing_write<W: Write>(&self, w: W) -> Result<()>
Encode the entry ready for signing.
pub fn encode_write<W: Write>(&self, w: W) -> Result<()>
pub fn encoding_length(&self) -> usize
Trait Implementations§
Source§impl<'de, H, S> Deserialize<'de> for Entry<H, S>
impl<'de, H, S> Deserialize<'de> for Entry<H, S>
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
impl<H, S> Eq for Entry<H, S>
impl<H, S> StructuralPartialEq for Entry<H, S>
Auto Trait Implementations§
impl<H, S> Freeze for Entry<H, S>
impl<H, S> RefUnwindSafe for Entry<H, S>where
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<H, S> Send for Entry<H, S>
impl<H, S> Sync for Entry<H, S>
impl<H, S> Unpin for Entry<H, S>
impl<H, S> UnwindSafe for Entry<H, S>where
H: UnwindSafe,
S: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more