pub enum AnyActerModel {
Show 22 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),
Story(Story),
StoryUpdate(StoryUpdate),
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)
Story(Story)
StoryUpdate(StoryUpdate)
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
pub async fn execute(executor: &Executor, event: AnyActerEvent)
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<Story> for AnyActerModel
impl From<Story> for AnyActerModel
Source§fn from(v: Story) -> AnyActerModel
fn from(v: Story) -> AnyActerModel
Converts to this type from the input type.
Source§impl From<StoryUpdate> for AnyActerModel
impl From<StoryUpdate> for AnyActerModel
Source§fn from(v: StoryUpdate) -> AnyActerModel
fn from(v: StoryUpdate) -> 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<AnyActerEvent> for AnyActerModel
impl TryFrom<AnyActerEvent> for AnyActerModel
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
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<Story> for AnyActerModel
impl TryInto<Story> for AnyActerModel
Source§impl TryInto<StoryUpdate> for AnyActerModel
impl TryInto<StoryUpdate> 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§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