pub enum ArchiveContext {
AgendaItem(AgendaItemId),
Meeting(CouncilMeetingId),
Appeal(AppealId),
Flag(FlagId),
InterviewRun(InterviewRunId),
}Expand description
What an archived prompt was for: prompt_archive.context_kind and
context_id (agora migration 105) (0.100)
The two columns are stored apart, so build one with from_stored and
take it apart with kind and as_uuid at the query, and nowhere
else.
Variants§
AgendaItem(AgendaItemId)
A Council agenda item: the seats’ deliberation, the Clerk’s passes
Meeting(CouncilMeetingId)
A Council sitting as a whole: the Lawyer’s adjournment summary, on sittings before 2026-10-17
Appeal(AppealId)
An appeal, at any appeals stage
Flag(FlagId)
A content flag, under Tier 2 review
InterviewRun(InterviewRunId)
A candidate interview run
Implementations§
Source§impl ArchiveContext
impl ArchiveContext
Sourcepub fn kind(&self) -> ArchiveContextKind
pub fn kind(&self) -> ArchiveContextKind
Which table the id names
Sourcepub fn from_stored(kind: ArchiveContextKind, id: Uuid) -> Self
pub fn from_stored(kind: ArchiveContextKind, id: Uuid) -> Self
Read the two stored columns back as one value
Trait Implementations§
Source§impl Clone for ArchiveContext
impl Clone for ArchiveContext
impl Copy for ArchiveContext
Source§impl Debug for ArchiveContext
impl Debug for ArchiveContext
Source§impl Display for ArchiveContext
agenda item <uuid>, meeting <uuid>, appeal <uuid>, flag <uuid>,
interview run <uuid>
impl Display for ArchiveContext
agenda item <uuid>, meeting <uuid>, appeal <uuid>, flag <uuid>,
interview run <uuid>
impl Eq for ArchiveContext
Source§impl From<AgendaItemId> for ArchiveContext
impl From<AgendaItemId> for ArchiveContext
Source§fn from(id: AgendaItemId) -> Self
fn from(id: AgendaItemId) -> Self
Converts to this type from the input type.
Source§impl From<AppealId> for ArchiveContext
impl From<AppealId> for ArchiveContext
Source§impl From<CouncilMeetingId> for ArchiveContext
impl From<CouncilMeetingId> for ArchiveContext
Source§fn from(id: CouncilMeetingId) -> Self
fn from(id: CouncilMeetingId) -> Self
Converts to this type from the input type.
Source§impl From<FlagId> for ArchiveContext
impl From<FlagId> for ArchiveContext
Source§impl From<InterviewRunId> for ArchiveContext
impl From<InterviewRunId> for ArchiveContext
Source§fn from(id: InterviewRunId) -> Self
fn from(id: InterviewRunId) -> Self
Converts to this type from the input type.
Source§impl Hash for ArchiveContext
impl Hash for ArchiveContext
Source§impl PartialEq for ArchiveContext
impl PartialEq for ArchiveContext
impl StructuralPartialEq for ArchiveContext
Auto Trait Implementations§
impl Freeze for ArchiveContext
impl RefUnwindSafe for ArchiveContext
impl Send for ArchiveContext
impl Sync for ArchiveContext
impl Unpin for ArchiveContext
impl UnsafeUnpin for ArchiveContext
impl UnwindSafe for ArchiveContext
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.