Type Alias lb_rs::shared::signed_file::SignedFile

source ·
pub type SignedFile = ECSigned<FileMetadata>;

Aliased Type§

struct SignedFile {
    pub timestamped_value: Timestamped<FileMetadata>,
    pub signature: Vec<u8>,
    pub public_key: PublicKey,
}

Fields§

§timestamped_value: Timestamped<FileMetadata>§signature: Vec<u8>§public_key: PublicKey

Trait Implementations§

source§

impl AsRef<FileMetadata> for SignedFile

source§

fn as_ref(&self) -> &FileMetadata

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Display for SignedFile

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl IntoServerFile for SignedFile

source§

fn add_time(self, version: u64) -> ServerFile

source§

impl PartialEq for SignedFile

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.