pub struct RecordSpend<'a> {
pub session_id: &'a str,
pub agent_id: &'a str,
pub rel_path: &'a str,
pub size: i64,
}Expand description
Arguments for record_spend: a partial read where the model paid for the
slice but nothing about it may be cached, so the row (on first insert)
carries sha256 '' – a value no real digest can equal, so lookup_read’s
equality check can never treat it as a stub candidate. On conflict, only the
spend columns move.
Fields§
§session_id: &'a strThe session id value.
agent_id: &'a strThe agent id value.
rel_path: &'a strThe rel path value.
size: i64The size value.
Auto Trait Implementations§
impl<'a> Freeze for RecordSpend<'a>
impl<'a> RefUnwindSafe for RecordSpend<'a>
impl<'a> Send for RecordSpend<'a>
impl<'a> Sync for RecordSpend<'a>
impl<'a> Unpin for RecordSpend<'a>
impl<'a> UnsafeUnpin for RecordSpend<'a>
impl<'a> UnwindSafe for RecordSpend<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more