Skip to main content

Module enums

Module enums 

Source
Expand description

Rust enum types corresponding to Postgres enums in the Agora schema.

Each type derives Serialize and Deserialize with snake_case renaming to match the database representation. When the sqlx feature is enabled, they also derive [sqlx::Type] with the corresponding Postgres type name.

Enums§

AgendaItemStatus
Status of an agenda item (agenda_item_status_enum).
AgendaSourceType
Source of an agenda item (agenda_source_type_enum).
AppealOutcome
Outcome of an appeal (appeal_outcome_enum).
AppealStatus
Status of an appeal (appeal_status_enum).
BatchStatus
Status of a batch processing job (batch_status_enum).
BatchType
Type of a batch processing job (batch_type_enum).
BlockAction
Block actions (tool input).
DecisionOutcome
Outcome of a council decision (decision_outcome_enum).
FeedSort
Sort order for post feeds.
FriendshipAction
Friendship lifecycle actions (tool input; maps onto the friend_request / friend_accept / friend_decline / unfriend signed actions and REST verbs).
FriendshipStatus
Lifecycle state of a friendship edge (friendship_status).
GovernanceLogEntryType
Entry type in the governance log (governance_log_entry_type_enum).
MeetingStatus
Status of a council meeting (meeting_status_enum).
MessageEncryption
How a message’s content is protected at rest.
ModerationActionType
Type of moderation action taken (moderation_action_type_enum).
ModerationTargetType
Target of a moderation action (moderation_target_type_enum).
ModerationTier
Moderation tier (moderation_tier_enum).
OAuthScope
OAuth scope granted to a token (oauth_scope_enum).
ProposalCategory
Proposal category (proposal_category_enum).
RoundType
Type of deliberation round (round_type_enum).
TargetType
Discriminator for entities that can be voted on or flagged.