Enum acter_core::models::AnyActerModel
source · pub enum AnyActerModel {
Show 20 variants
RedactedActerModel(RedactedActerModel),
CalendarEvent(CalendarEvent),
CalendarEventUpdate(CalendarEventUpdate),
TaskList(TaskList),
TaskListUpdate(TaskListUpdate),
Task(Task),
TaskUpdate(TaskUpdate),
TaskSelfAssign(TaskSelfAssign),
TaskSelfUnassign(TaskSelfUnassign),
Pin(Pin),
PinUpdate(PinUpdate),
NewsEntry(NewsEntry),
NewsEntryUpdate(NewsEntryUpdate),
Comment(Comment),
CommentUpdate(CommentUpdate),
Attachment(Attachment),
AttachmentUpdate(AttachmentUpdate),
Rsvp(Rsvp),
Reaction(Reaction),
ReadReceipt(ReadReceipt),
}
Variants§
RedactedActerModel(RedactedActerModel)
CalendarEvent(CalendarEvent)
CalendarEventUpdate(CalendarEventUpdate)
TaskList(TaskList)
TaskListUpdate(TaskListUpdate)
Task(Task)
TaskUpdate(TaskUpdate)
TaskSelfAssign(TaskSelfAssign)
TaskSelfUnassign(TaskSelfUnassign)
Pin(Pin)
PinUpdate(PinUpdate)
NewsEntry(NewsEntry)
NewsEntryUpdate(NewsEntryUpdate)
Comment(Comment)
CommentUpdate(CommentUpdate)
Attachment(Attachment)
AttachmentUpdate(AttachmentUpdate)
Rsvp(Rsvp)
Reaction(Reaction)
ReadReceipt(ReadReceipt)
Implementations§
source§impl AnyActerModel
impl AnyActerModel
pub fn model_type(&self) -> &str
Trait Implementations§
source§impl ActerModel for AnyActerModel
impl ActerModel for AnyActerModel
source§fn belongs_to(&self) -> Option<Vec<String>>
fn belongs_to(&self) -> Option<Vec<String>>
The models to inform about this model as it belongs to that
source§fn capabilities(&self) -> &[Capability]
fn capabilities(&self) -> &[Capability]
activate to enable commenting support for this type of model
source§async fn execute(self, __enum_dispatch_arg_0: &Store) -> Result<Vec<String>>
async fn execute(self, __enum_dispatch_arg_0: &Store) -> Result<Vec<String>>
The execution to run when this model is found.
source§fn transition(&mut self, __enum_dispatch_arg_0: &AnyActerModel) -> Result<bool>
fn transition(&mut self, __enum_dispatch_arg_0: &AnyActerModel) -> Result<bool>
handle transition from an external Item upon us
source§async fn redact(
&self,
__enum_dispatch_arg_0: &Store,
__enum_dispatch_arg_1: RedactedActerModel,
) -> Result<Vec<String>>
async fn redact( &self, __enum_dispatch_arg_0: &Store, __enum_dispatch_arg_1: RedactedActerModel, ) -> Result<Vec<String>>
The execution to run when this model is found.
fn indizes(&self, __enum_dispatch_arg_0: &UserId) -> Vec<String>
source§impl Clone for AnyActerModel
impl Clone for AnyActerModel
source§fn clone(&self) -> AnyActerModel
fn clone(&self) -> AnyActerModel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnyActerModel
impl Debug for AnyActerModel
source§impl<'de> Deserialize<'de> for AnyActerModel
impl<'de> Deserialize<'de> for AnyActerModel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Attachment> for AnyActerModel
impl From<Attachment> for AnyActerModel
source§fn from(v: Attachment) -> AnyActerModel
fn from(v: Attachment) -> AnyActerModel
Converts to this type from the input type.
source§impl From<AttachmentUpdate> for AnyActerModel
impl From<AttachmentUpdate> for AnyActerModel
source§fn from(v: AttachmentUpdate) -> AnyActerModel
fn from(v: AttachmentUpdate) -> AnyActerModel
Converts to this type from the input type.
source§impl From<CalendarEvent> for AnyActerModel
impl From<CalendarEvent> for AnyActerModel
source§fn from(v: CalendarEvent) -> AnyActerModel
fn from(v: CalendarEvent) -> AnyActerModel
Converts to this type from the input type.
source§impl From<CalendarEventUpdate> for AnyActerModel
impl From<CalendarEventUpdate> for AnyActerModel
source§fn from(v: CalendarEventUpdate) -> AnyActerModel
fn from(v: CalendarEventUpdate) -> AnyActerModel
Converts to this type from the input type.
source§impl From<Comment> for AnyActerModel
impl From<Comment> for AnyActerModel
source§fn from(v: Comment) -> AnyActerModel
fn from(v: Comment) -> AnyActerModel
Converts to this type from the input type.
source§impl From<CommentUpdate> for AnyActerModel
impl From<CommentUpdate> for AnyActerModel
source§fn from(v: CommentUpdate) -> AnyActerModel
fn from(v: CommentUpdate) -> AnyActerModel
Converts to this type from the input type.
source§impl From<NewsEntry> for AnyActerModel
impl From<NewsEntry> for AnyActerModel
source§fn from(v: NewsEntry) -> AnyActerModel
fn from(v: NewsEntry) -> AnyActerModel
Converts to this type from the input type.
source§impl From<NewsEntryUpdate> for AnyActerModel
impl From<NewsEntryUpdate> for AnyActerModel
source§fn from(v: NewsEntryUpdate) -> AnyActerModel
fn from(v: NewsEntryUpdate) -> AnyActerModel
Converts to this type from the input type.
source§impl From<Pin> for AnyActerModel
impl From<Pin> for AnyActerModel
source§fn from(v: Pin) -> AnyActerModel
fn from(v: Pin) -> AnyActerModel
Converts to this type from the input type.
source§impl From<PinUpdate> for AnyActerModel
impl From<PinUpdate> for AnyActerModel
source§fn from(v: PinUpdate) -> AnyActerModel
fn from(v: PinUpdate) -> AnyActerModel
Converts to this type from the input type.
source§impl From<Reaction> for AnyActerModel
impl From<Reaction> for AnyActerModel
source§fn from(v: Reaction) -> AnyActerModel
fn from(v: Reaction) -> AnyActerModel
Converts to this type from the input type.
source§impl From<ReadReceipt> for AnyActerModel
impl From<ReadReceipt> for AnyActerModel
source§fn from(v: ReadReceipt) -> AnyActerModel
fn from(v: ReadReceipt) -> AnyActerModel
Converts to this type from the input type.
source§impl From<RedactedActerModel> for AnyActerModel
impl From<RedactedActerModel> for AnyActerModel
source§fn from(v: RedactedActerModel) -> AnyActerModel
fn from(v: RedactedActerModel) -> AnyActerModel
Converts to this type from the input type.
source§impl From<Rsvp> for AnyActerModel
impl From<Rsvp> for AnyActerModel
source§fn from(v: Rsvp) -> AnyActerModel
fn from(v: Rsvp) -> AnyActerModel
Converts to this type from the input type.
source§impl From<Task> for AnyActerModel
impl From<Task> for AnyActerModel
source§fn from(v: Task) -> AnyActerModel
fn from(v: Task) -> AnyActerModel
Converts to this type from the input type.
source§impl From<TaskList> for AnyActerModel
impl From<TaskList> for AnyActerModel
source§fn from(v: TaskList) -> AnyActerModel
fn from(v: TaskList) -> AnyActerModel
Converts to this type from the input type.
source§impl From<TaskListUpdate> for AnyActerModel
impl From<TaskListUpdate> for AnyActerModel
source§fn from(v: TaskListUpdate) -> AnyActerModel
fn from(v: TaskListUpdate) -> AnyActerModel
Converts to this type from the input type.
source§impl From<TaskSelfAssign> for AnyActerModel
impl From<TaskSelfAssign> for AnyActerModel
source§fn from(v: TaskSelfAssign) -> AnyActerModel
fn from(v: TaskSelfAssign) -> AnyActerModel
Converts to this type from the input type.
source§impl From<TaskSelfUnassign> for AnyActerModel
impl From<TaskSelfUnassign> for AnyActerModel
source§fn from(v: TaskSelfUnassign) -> AnyActerModel
fn from(v: TaskSelfUnassign) -> AnyActerModel
Converts to this type from the input type.
source§impl From<TaskUpdate> for AnyActerModel
impl From<TaskUpdate> for AnyActerModel
source§fn from(v: TaskUpdate) -> AnyActerModel
fn from(v: TaskUpdate) -> AnyActerModel
Converts to this type from the input type.
source§impl Serialize for AnyActerModel
impl Serialize for AnyActerModel
source§impl TryFrom<&Raw<AnySyncTimelineEvent>> for AnyActerModel
impl TryFrom<&Raw<AnySyncTimelineEvent>> for AnyActerModel
source§impl TryFrom<&Raw<AnyTimelineEvent>> for AnyActerModel
impl TryFrom<&Raw<AnyTimelineEvent>> for AnyActerModel
source§impl TryFrom<AnyActerEvent> for AnyActerModel
impl TryFrom<AnyActerEvent> for AnyActerModel
source§impl TryInto<Attachment> for AnyActerModel
impl TryInto<Attachment> for AnyActerModel
source§impl TryInto<AttachmentUpdate> for AnyActerModel
impl TryInto<AttachmentUpdate> for AnyActerModel
source§impl TryInto<CalendarEvent> for AnyActerModel
impl TryInto<CalendarEvent> for AnyActerModel
source§impl TryInto<CalendarEventUpdate> for AnyActerModel
impl TryInto<CalendarEventUpdate> for AnyActerModel
source§impl TryInto<Comment> for AnyActerModel
impl TryInto<Comment> for AnyActerModel
source§impl TryInto<CommentUpdate> for AnyActerModel
impl TryInto<CommentUpdate> for AnyActerModel
source§impl TryInto<NewsEntry> for AnyActerModel
impl TryInto<NewsEntry> for AnyActerModel
source§impl TryInto<NewsEntryUpdate> for AnyActerModel
impl TryInto<NewsEntryUpdate> for AnyActerModel
source§impl TryInto<Pin> for AnyActerModel
impl TryInto<Pin> for AnyActerModel
source§impl TryInto<PinUpdate> for AnyActerModel
impl TryInto<PinUpdate> for AnyActerModel
source§impl TryInto<Reaction> for AnyActerModel
impl TryInto<Reaction> for AnyActerModel
source§impl TryInto<ReadReceipt> for AnyActerModel
impl TryInto<ReadReceipt> for AnyActerModel
source§impl TryInto<RedactedActerModel> for AnyActerModel
impl TryInto<RedactedActerModel> for AnyActerModel
source§impl TryInto<Rsvp> for AnyActerModel
impl TryInto<Rsvp> for AnyActerModel
source§impl TryInto<Task> for AnyActerModel
impl TryInto<Task> for AnyActerModel
source§impl TryInto<TaskList> for AnyActerModel
impl TryInto<TaskList> for AnyActerModel
source§impl TryInto<TaskListUpdate> for AnyActerModel
impl TryInto<TaskListUpdate> for AnyActerModel
source§impl TryInto<TaskSelfAssign> for AnyActerModel
impl TryInto<TaskSelfAssign> for AnyActerModel
source§impl TryInto<TaskSelfUnassign> for AnyActerModel
impl TryInto<TaskSelfUnassign> for AnyActerModel
source§impl TryInto<TaskUpdate> for AnyActerModel
impl TryInto<TaskUpdate> for AnyActerModel
Auto Trait Implementations§
impl Freeze for AnyActerModel
impl RefUnwindSafe for AnyActerModel
impl Send for AnyActerModel
impl Sync for AnyActerModel
impl Unpin for AnyActerModel
impl UnwindSafe for AnyActerModel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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