pub struct BatchSize(/* private fields */);Expand description
Batch size domain type for limiting query results.
BatchSize represents the maximum number of events to return in a single query. Callers are responsible for choosing appropriate batch sizes based on their memory constraints and use case requirements.
A batch size of zero is valid and will return an empty result set.
§Examples
ⓘ
use eventcore_types::projection::BatchSize;
let small = BatchSize::new(100);
let large = BatchSize::new(1_000_000);
let empty = BatchSize::new(0); // Valid - returns no eventsImplementations§
Trait Implementations§
Source§impl Ord for BatchSize
impl Ord for BatchSize
Source§impl PartialOrd for BatchSize
impl PartialOrd for BatchSize
impl Copy for BatchSize
impl Eq for BatchSize
impl StructuralPartialEq for BatchSize
Auto Trait Implementations§
impl Freeze for BatchSize
impl RefUnwindSafe for BatchSize
impl Send for BatchSize
impl Sync for BatchSize
impl Unpin for BatchSize
impl UnwindSafe for BatchSize
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