pub struct Manifest { /* private fields */ }Expand description
The one builder of a call’s context manifest (constitution VIII): every part handed to a model call is pushed here, hashed and labelled once.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn push(
&mut self,
kind: ContextKind,
source: &str,
reference: &str,
bytes: &[u8],
) -> &mut Self
pub fn push( &mut self, kind: ContextKind, source: &str, reference: &str, bytes: &[u8], ) -> &mut Self
Adds a part: what it is, where it came from, a reference to it and its exact bytes (an empty part is not added).
Sourcepub fn finish(&self) -> ContextManifest
pub fn finish(&self) -> ContextManifest
The finished manifest, sorted, with its digest.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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