pub struct BlockMaxValue<'a> {
pub score: f64,
pub fingerprint: &'a str,
}Expand description
A persisted block bound together with the exact scorer identity used to build it.
Fields§
§score: f64§fingerprint: &'a strImplementations§
Source§impl<'a> BlockMaxValue<'a>
impl<'a> BlockMaxValue<'a>
pub fn decode(bytes: &'a [u8]) -> StorageBackendResult<Self>
pub fn encode( &self, control: &StorageReadControl, ) -> StorageBackendResult<BudgetedVec<u8>>
Auto Trait Implementations§
impl<'a> Freeze for BlockMaxValue<'a>
impl<'a> RefUnwindSafe for BlockMaxValue<'a>
impl<'a> Send for BlockMaxValue<'a>
impl<'a> Sync for BlockMaxValue<'a>
impl<'a> Unpin for BlockMaxValue<'a>
impl<'a> UnsafeUnpin for BlockMaxValue<'a>
impl<'a> UnwindSafe for BlockMaxValue<'a>
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