Struct ResourceLedger
#[non_exhaustive]pub struct ResourceLedger {
pub unit: ResourceUnit,
pub total: u64,
pub trials: Vec<LedgerEntry>,
}Expand description
A study’s resource ledger (Study::resource_ledger).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.unit: ResourceUnitThe unit every amount is in.
total: u64The study’s total charge: the sum of every entry’s
trained, equal to what the fidelity budget
has consumed.
trials: Vec<LedgerEntry>One entry per trial, in trial-number order.
Trait Implementations§
§impl Clone for ResourceLedger
impl Clone for ResourceLedger
§fn clone(&self) -> ResourceLedger
fn clone(&self) -> ResourceLedger
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 more§impl Debug for ResourceLedger
impl Debug for ResourceLedger
§impl PartialEq for ResourceLedger
impl PartialEq for ResourceLedger
impl StructuralPartialEq for ResourceLedger
Auto Trait Implementations§
impl Freeze for ResourceLedger
impl RefUnwindSafe for ResourceLedger
impl Send for ResourceLedger
impl Sync for ResourceLedger
impl Unpin for ResourceLedger
impl UnsafeUnpin for ResourceLedger
impl UnwindSafe for ResourceLedger
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