pub struct ServerlessGenerationPointer {
pub namespace: String,
pub generation: u64,
pub manifest_relative_path: PathBuf,
pub manifest_bytes: u64,
pub manifest_checksum: u32,
pub manifest_content_hash: ServerlessContentHash,
}Fields§
§namespace: String§generation: u64§manifest_relative_path: PathBuf§manifest_bytes: u64§manifest_checksum: u32§manifest_content_hash: ServerlessContentHashImplementations§
Source§impl ServerlessGenerationPointer
impl ServerlessGenerationPointer
pub fn from_manifest( plan: &ServerlessFilePlan, manifest: &ServerlessManifest, ) -> Self
pub fn write_to_path(&self, path: impl AsRef<Path>) -> RdbFileResult<()>
pub fn read_from_path(path: impl AsRef<Path>) -> RdbFileResult<Self>
pub fn encode(&self) -> Vec<u8> ⓘ
pub fn decode(bytes: &[u8]) -> RdbFileResult<Self>
Trait Implementations§
Source§impl Clone for ServerlessGenerationPointer
impl Clone for ServerlessGenerationPointer
Source§fn clone(&self) -> ServerlessGenerationPointer
fn clone(&self) -> ServerlessGenerationPointer
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 ServerlessGenerationPointer
impl Debug for ServerlessGenerationPointer
impl Eq for ServerlessGenerationPointer
Source§impl PartialEq for ServerlessGenerationPointer
impl PartialEq for ServerlessGenerationPointer
Source§fn eq(&self, other: &ServerlessGenerationPointer) -> bool
fn eq(&self, other: &ServerlessGenerationPointer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerlessGenerationPointer
Auto Trait Implementations§
impl Freeze for ServerlessGenerationPointer
impl RefUnwindSafe for ServerlessGenerationPointer
impl Send for ServerlessGenerationPointer
impl Sync for ServerlessGenerationPointer
impl Unpin for ServerlessGenerationPointer
impl UnsafeUnpin for ServerlessGenerationPointer
impl UnwindSafe for ServerlessGenerationPointer
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