pub struct FakeContentStore { /* private fields */ }Expand description
In-memory fake content store fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
Implementations§
Source§impl FakeContentStore
impl FakeContentStore
Sourcepub fn put_text(&self, content_ref: ContentId, text: impl Into<String>)
pub fn put_text(&self, content_ref: ContentId, text: impl Into<String>)
Builds the put text value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn get(&self, content_ref: &ContentId) -> Option<StoredContent>
pub fn get(&self, content_ref: &ContentId) -> Option<StoredContent>
Looks up an entry in this local store without registry or runtime work. This reads deterministic in-memory test store state and performs no external I/O.
Sourcepub fn manifest(&self) -> Vec<StoredContentManifestEntry>
pub fn manifest(&self) -> Vec<StoredContentManifestEntry>
Returns the manifest currently held by this value. This configures deterministic in-memory test state only.
Trait Implementations§
Source§impl Clone for FakeContentStore
impl Clone for FakeContentStore
Source§fn clone(&self) -> FakeContentStore
fn clone(&self) -> FakeContentStore
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 moreSource§impl Debug for FakeContentStore
impl Debug for FakeContentStore
Source§impl Default for FakeContentStore
impl Default for FakeContentStore
Source§fn default() -> FakeContentStore
fn default() -> FakeContentStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FakeContentStore
impl RefUnwindSafe for FakeContentStore
impl Send for FakeContentStore
impl Sync for FakeContentStore
impl Unpin for FakeContentStore
impl UnsafeUnpin for FakeContentStore
impl UnwindSafe for FakeContentStore
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