pub struct InMemoryReceiptSource { /* private fields */ }Expand description
In-memory receipt source for embedding and testing.
Accepts pre-loaded receipts, filters out reserved non-sensor receipts
(buildfix, cockpit) by sensor_id or path prefix (belt-and-suspenders),
mirroring the fs loader’s self-ingest guard, and sorts by path on
construction to match FsReceiptSource’s deterministic ordering.
Implementations§
Source§impl InMemoryReceiptSource
impl InMemoryReceiptSource
pub fn new(receipts: Vec<LoadedReceipt>) -> Self
Trait Implementations§
Source§impl Clone for InMemoryReceiptSource
impl Clone for InMemoryReceiptSource
Source§fn clone(&self) -> InMemoryReceiptSource
fn clone(&self) -> InMemoryReceiptSource
Returns a duplicate 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 InMemoryReceiptSource
impl Debug for InMemoryReceiptSource
Source§impl ReceiptSource for InMemoryReceiptSource
Available on crate feature memory only.
impl ReceiptSource for InMemoryReceiptSource
Available on crate feature
memory only.fn load_receipts(&self) -> Result<Vec<LoadedReceipt>>
Auto Trait Implementations§
impl Freeze for InMemoryReceiptSource
impl RefUnwindSafe for InMemoryReceiptSource
impl Send for InMemoryReceiptSource
impl Sync for InMemoryReceiptSource
impl Unpin for InMemoryReceiptSource
impl UnsafeUnpin for InMemoryReceiptSource
impl UnwindSafe for InMemoryReceiptSource
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