pub struct ActivityBuilder { /* private fields */ }Expand description
Builder for Activity entity
Provides a fluent API for constructing Activity instances. System fields (id, metadata, timestamps) are auto-initialized.
Implementations§
Source§impl ActivityBuilder
impl ActivityBuilder
Sourcepub fn activity_type(self, value: ActivityType) -> Self
pub fn activity_type(self, value: ActivityType) -> Self
Set the activity_type field (default: ActivityType::default())
Sourcepub fn direction(self, value: ActivityDirection) -> Self
pub fn direction(self, value: ActivityDirection) -> Self
Set the direction field (optional)
Sourcepub fn opportunity_id(self, value: Uuid) -> Self
pub fn opportunity_id(self, value: Uuid) -> Self
Set the opportunity_id field (optional)
Sourcepub fn status(self, value: ActivityStatus) -> Self
pub fn status(self, value: ActivityStatus) -> Self
Set the status field (default: ActivityStatus::default())
Sourcepub fn scheduled_at(self, value: DateTime<Utc>) -> Self
pub fn scheduled_at(self, value: DateTime<Utc>) -> Self
Set the scheduled_at field (optional)
Sourcepub fn occurred_at(self, value: DateTime<Utc>) -> Self
pub fn occurred_at(self, value: DateTime<Utc>) -> Self
Set the occurred_at field (optional)
Sourcepub fn assignee_id(self, value: Uuid) -> Self
pub fn assignee_id(self, value: Uuid) -> Self
Set the assignee_id field (optional)
Trait Implementations§
Source§impl Clone for ActivityBuilder
impl Clone for ActivityBuilder
Source§impl Debug for ActivityBuilder
impl Debug for ActivityBuilder
Auto Trait Implementations§
impl Freeze for ActivityBuilder
impl RefUnwindSafe for ActivityBuilder
impl Send for ActivityBuilder
impl Sync for ActivityBuilder
impl Unpin for ActivityBuilder
impl UnsafeUnpin for ActivityBuilder
impl UnwindSafe for ActivityBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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