Type Alias SignedFile

Source
pub type SignedFile = ECSigned<FileMetadata>;

Aliased Type§

pub 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.