Module common

Source
Expand description

Ticket utilities.

This module provides helper functions and types for ticket-related endpoints.

It includes:

  • is_valid: checks whether a user is authorized to access or modify a ticket.
  • TicketResponse: a serializable response type for ticket API endpoints.

Structs§

TicketResponse
TicketWithUserResponse
UserResponse

Functions§

is_valid
Returns whether user_id is allowed to view/post on a ticket in module_id.