pub struct ServerlessManifestEntry {
pub kind: ServerlessPackKind,
pub relative_path: PathBuf,
pub bytes: u64,
pub checksum: u32,
pub content_hash: ServerlessContentHash,
}Fields§
§kind: ServerlessPackKind§relative_path: PathBuf§bytes: u64§checksum: u32§content_hash: ServerlessContentHashImplementations§
Source§impl ServerlessManifestEntry
impl ServerlessManifestEntry
pub fn new( kind: ServerlessPackKind, relative_path: impl Into<PathBuf>, bytes: u64, checksum: u32, ) -> Self
pub fn from_bytes( kind: ServerlessPackKind, relative_path: impl Into<PathBuf>, payload: &[u8], ) -> Self
pub fn with_content_hash(self, content_hash: ServerlessContentHash) -> Self
Trait Implementations§
Source§impl Clone for ServerlessManifestEntry
impl Clone for ServerlessManifestEntry
Source§fn clone(&self) -> ServerlessManifestEntry
fn clone(&self) -> ServerlessManifestEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerlessManifestEntry
impl Debug for ServerlessManifestEntry
impl Eq for ServerlessManifestEntry
Source§impl PartialEq for ServerlessManifestEntry
impl PartialEq for ServerlessManifestEntry
Source§fn eq(&self, other: &ServerlessManifestEntry) -> bool
fn eq(&self, other: &ServerlessManifestEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerlessManifestEntry
Auto Trait Implementations§
impl Freeze for ServerlessManifestEntry
impl RefUnwindSafe for ServerlessManifestEntry
impl Send for ServerlessManifestEntry
impl Sync for ServerlessManifestEntry
impl Unpin for ServerlessManifestEntry
impl UnsafeUnpin for ServerlessManifestEntry
impl UnwindSafe for ServerlessManifestEntry
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