pub struct IndividualMemberUseCases {
pub repo: Arc<dyn IndividualMemberRepository>,
}Fields§
§repo: Arc<dyn IndividualMemberRepository>Implementations§
Source§impl IndividualMemberUseCases
impl IndividualMemberUseCases
pub fn new(repo: Arc<dyn IndividualMemberRepository>) -> Self
Sourcepub async fn join_campaign(
&self,
campaign_id: Uuid,
email: String,
postal_code: String,
) -> Result<IndividualMemberResponseDto, String>
pub async fn join_campaign( &self, campaign_id: Uuid, email: String, postal_code: String, ) -> Result<IndividualMemberResponseDto, String>
Join a campaign as an individual member
Sourcepub async fn grant_consent(
&self,
campaign_id: Uuid,
member_id: Uuid,
) -> Result<IndividualMemberResponseDto, String>
pub async fn grant_consent( &self, campaign_id: Uuid, member_id: Uuid, ) -> Result<IndividualMemberResponseDto, String>
Grant GDPR consent
Auto Trait Implementations§
impl !RefUnwindSafe for IndividualMemberUseCases
impl !UnwindSafe for IndividualMemberUseCases
impl Freeze for IndividualMemberUseCases
impl Send for IndividualMemberUseCases
impl Sync for IndividualMemberUseCases
impl Unpin for IndividualMemberUseCases
impl UnsafeUnpin for IndividualMemberUseCases
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.