pub struct AggTestCase<S, C, E, DomainErr> {
pub initial: fn() -> S,
pub decider: fn(S, C) -> Result<Vec<E>, DomainErr>,
pub evolve: fn(S, &E) -> S,
}
Fields§
§initial: fn() -> S
§decider: fn(S, C) -> Result<Vec<E>, DomainErr>
§evolve: fn(S, &E) -> S
Implementations§
Source§impl<S, C, DomainErr: PartialEq + Debug, E: PartialEq + Debug> AggTestCase<S, C, E, DomainErr>
impl<S, C, DomainErr: PartialEq + Debug, E: PartialEq + Debug> AggTestCase<S, C, E, DomainErr>
pub fn given(self, events: Vec<E>) -> AfterGiven<S, C, E, DomainErr>
pub fn given_none(self) -> AfterGiven<S, C, E, DomainErr>
Auto Trait Implementations§
impl<S, C, E, DomainErr> Freeze for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> RefUnwindSafe for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> Send for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> Sync for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> Unpin for AggTestCase<S, C, E, DomainErr>
impl<S, C, E, DomainErr> UnwindSafe for AggTestCase<S, C, E, DomainErr>
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