pub struct SqliteSegmentRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqliteSegmentRepository
impl SqliteSegmentRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl Debug for SqliteSegmentRepository
impl Debug for SqliteSegmentRepository
Source§impl SegmentRepository for SqliteSegmentRepository
impl SegmentRepository for SqliteSegmentRepository
Source§fn add_member(
&self,
segment_id: SegmentId,
customer_id: CustomerId,
) -> Result<SegmentMembership>
fn add_member( &self, segment_id: SegmentId, customer_id: CustomerId, ) -> Result<SegmentMembership>
Add a customer to a static segment
Source§fn remove_member(
&self,
segment_id: SegmentId,
customer_id: CustomerId,
) -> Result<()>
fn remove_member( &self, segment_id: SegmentId, customer_id: CustomerId, ) -> Result<()>
Remove a customer from a static segment
Source§fn list_members(
&self,
segment_id: SegmentId,
limit: Option<u32>,
offset: Option<u32>,
) -> Result<Vec<SegmentMembership>>
fn list_members( &self, segment_id: SegmentId, limit: Option<u32>, offset: Option<u32>, ) -> Result<Vec<SegmentMembership>>
List members of a segment
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteSegmentRepository
impl !UnwindSafe for SqliteSegmentRepository
impl Freeze for SqliteSegmentRepository
impl Send for SqliteSegmentRepository
impl Sync for SqliteSegmentRepository
impl Unpin for SqliteSegmentRepository
impl UnsafeUnpin for SqliteSegmentRepository
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