pub struct InMemoryEpisodeStore { /* private fields */ }Expand description
インメモリの EpisodeStore 実装(テスト用)
Implementations§
Source§impl InMemoryEpisodeStore
impl InMemoryEpisodeStore
pub fn new() -> InMemoryEpisodeStore
Trait Implementations§
Source§impl Default for InMemoryEpisodeStore
impl Default for InMemoryEpisodeStore
Source§fn default() -> InMemoryEpisodeStore
fn default() -> InMemoryEpisodeStore
Returns the “default value” for a type. Read more
Source§impl EpisodeStore for InMemoryEpisodeStore
impl EpisodeStore for InMemoryEpisodeStore
Source§fn append(&self, dto: &EpisodeDto) -> Result<EpisodeId, StoreError>
fn append(&self, dto: &EpisodeDto) -> Result<EpisodeId, StoreError>
EpisodeDto を追加
Source§fn get(&self, id: &EpisodeId) -> Result<Option<EpisodeDto>, StoreError>
fn get(&self, id: &EpisodeId) -> Result<Option<EpisodeDto>, StoreError>
ID で DTO を取得
Source§fn query(&self, filter: &EpisodeFilter) -> Result<Vec<EpisodeDto>, StoreError>
fn query(&self, filter: &EpisodeFilter) -> Result<Vec<EpisodeDto>, StoreError>
フィルタで検索
Source§fn count(&self, filter: Option<&EpisodeFilter>) -> Result<usize, StoreError>
fn count(&self, filter: Option<&EpisodeFilter>) -> Result<usize, StoreError>
件数を取得
Source§fn list_meta(
&self,
filter: Option<&EpisodeFilter>,
) -> Result<Vec<EpisodeMeta>, StoreError>
fn list_meta( &self, filter: Option<&EpisodeFilter>, ) -> Result<Vec<EpisodeMeta>, StoreError>
メタ情報のみをリスト(軽量)
Auto Trait Implementations§
impl !Freeze for InMemoryEpisodeStore
impl RefUnwindSafe for InMemoryEpisodeStore
impl Send for InMemoryEpisodeStore
impl Sync for InMemoryEpisodeStore
impl Unpin for InMemoryEpisodeStore
impl UnwindSafe for InMemoryEpisodeStore
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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