Struct warg_client::storage::PackageInfo
source · pub struct PackageInfo {
pub name: PackageName,
pub checkpoint: Option<Checkpoint>,
pub state: LogState,
pub head_registry_index: Option<RegistryIndex>,
pub head_fetch_token: Option<String>,
}Expand description
Represents information about a registry package.
Fields§
§name: PackageNameThe package name to publish.
checkpoint: Option<Checkpoint>The last known checkpoint of the package.
state: LogStateThe current package log state
head_registry_index: Option<RegistryIndex>The registry log index of the most recent record
head_fetch_token: Option<String>The fetch token for the most recent record
Implementations§
source§impl PackageInfo
impl PackageInfo
sourcepub fn new(name: impl Into<PackageName>) -> Self
pub fn new(name: impl Into<PackageName>) -> Self
Creates a new package info for the given package name.
Trait Implementations§
source§impl Clone for PackageInfo
impl Clone for PackageInfo
source§fn clone(&self) -> PackageInfo
fn clone(&self) -> PackageInfo
Returns a copy of the value. Read more
1.0.0 · 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 PackageInfo
impl Debug for PackageInfo
source§impl<'de> Deserialize<'de> for PackageInfo
impl<'de> Deserialize<'de> for PackageInfo
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
Auto Trait Implementations§
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnwindSafe for PackageInfo
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