pub struct InstallationSeed { /* private fields */ }Expand description
One bounded seed batch whose items remain ordinary compiled commands.
Implementations§
Source§impl InstallationSeed
impl InstallationSeed
Sourcepub fn new(
name: InstallationSymbol,
content_hash: GeneratedArtifactHash,
item_count: u64,
) -> Result<InstallationSeed, InstallationPlanError>
pub fn new( name: InstallationSymbol, content_hash: GeneratedArtifactHash, item_count: u64, ) -> Result<InstallationSeed, InstallationPlanError>
Binds one seed artifact and its exact nonzero item count.
Sourcepub const fn name(&self) -> &InstallationSymbol
pub const fn name(&self) -> &InstallationSymbol
Symbolic seed name.
Sourcepub const fn content_hash(&self) -> GeneratedArtifactHash
pub const fn content_hash(&self) -> GeneratedArtifactHash
Exact content identity without exposing seed values.
Sourcepub const fn item_count(&self) -> u64
pub const fn item_count(&self) -> u64
Number of individually idempotent ordinary command items.
Trait Implementations§
Source§impl Clone for InstallationSeed
impl Clone for InstallationSeed
Source§fn clone(&self) -> InstallationSeed
fn clone(&self) -> InstallationSeed
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 InstallationSeed
impl Debug for InstallationSeed
impl Eq for InstallationSeed
Source§impl Ord for InstallationSeed
impl Ord for InstallationSeed
Source§fn cmp(&self, other: &InstallationSeed) -> Ordering
fn cmp(&self, other: &InstallationSeed) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InstallationSeed
impl PartialEq for InstallationSeed
Source§impl PartialOrd for InstallationSeed
impl PartialOrd for InstallationSeed
impl StructuralPartialEq for InstallationSeed
Auto Trait Implementations§
impl Freeze for InstallationSeed
impl RefUnwindSafe for InstallationSeed
impl Send for InstallationSeed
impl Sync for InstallationSeed
impl Unpin for InstallationSeed
impl UnsafeUnpin for InstallationSeed
impl UnwindSafe for InstallationSeed
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