platform capa

platform-dto

Shared DTOs, error schemas, and API contracts for the platform tier

Shared DTOs, error schemas, and API contracts for the platform tier

Tierplatform
Roleunclassified (baselined)
Pathcrates/platform/dto
Edition2021
Targetsplatform_dto, field_coverage
Public items302 across 36 modules
Tests23

What it is for

Shared DTOs, error schemas, and API contracts for library crates platform.

This crate defines the stable contracts between frontend and backend:

Capabilities

ApiKeyCreated

API key management DTOs.

Item
pub struct ApiKeyCreated

ApiKeySummary

API key management DTOs.

Item
pub struct ApiKeySummary

CreateApiKeyRequest

API key management DTOs.

Item
pub struct CreateApiKeyRequest

AttachRequest

Asset attachment DTOs for the admin surface.

Item
pub struct AttachRequest

Attachment

Asset attachment DTOs for the admin surface.

Item
pub struct Attachment

AttachmentAuditEvent

Asset attachment DTOs for the admin surface.

Item
pub struct AttachmentAuditEvent

AttachmentListQuery

Asset attachment DTOs for the admin surface.

Item
pub struct AttachmentListQuery

AttachmentWithAsset

Asset attachment DTOs for the admin surface.

Item
pub struct AttachmentWithAsset

AuditClass

Asset attachment DTOs for the admin surface.

Item
pub enum AuditClass

Grant

Asset attachment DTOs for the admin surface.

Item
pub struct Grant

GrantRequest

Asset attachment DTOs for the admin surface.

Item
pub struct GrantRequest

GrantSource

Asset attachment DTOs for the admin surface.

Item
pub enum GrantSource

GranteeType

Asset attachment DTOs for the admin surface.

Item
pub enum GranteeType

Permission

Asset attachment DTOs for the admin surface.

Item
pub enum Permission

ReorderRequest

Asset attachment DTOs for the admin surface.

Item
pub struct ReorderRequest

ReorderResponse

Asset attachment DTOs for the admin surface.

Item
pub struct ReorderResponse

UpdateSortOrderRequest

Asset attachment DTOs for the admin surface.

Item
pub struct UpdateSortOrderRequest

Visibility

Asset attachment DTOs for the admin surface.

Item
pub enum Visibility

AuditLogDetail

Audit log DTOs.

Item
pub struct AuditLogDetail

AuditLogQuery

Audit log DTOs.

Item
pub struct AuditLogQuery
AuditLogQuery :: fn default() -> Self

AuditLogSummary

Audit log DTOs.

Item
pub struct AuditLogSummary

ChangePasswordRequest

Authentication DTOs.

Item
pub struct ChangePasswordRequest

Claims

Authentication DTOs.

Item
pub struct Claims
Claims :: fn is_expired(& self) -> bool
Claims :: fn remaining_seconds(& self) -> i64

LoginRequest

Authentication DTOs.

Item
pub struct LoginRequest

LoginResponse

Authentication DTOs.

Item
pub struct LoginResponse

PasswordResetConfirm

Authentication DTOs.

Item
pub struct PasswordResetConfirm

PasswordResetRequest

Authentication DTOs.

Item
pub struct PasswordResetRequest

TenantInfo

Authentication DTOs.

Item
pub struct TenantInfo

UserInfo

Authentication DTOs.

Item
pub struct UserInfo
UserInfo :: fn has_role(& self, role : & str) -> bool
UserInfo :: fn has_permission(& self, permission : & str) -> bool
UserInfo :: fn is_admin(& self) -> bool

ChessStateDto

Self-play chess-via-email dashboard widget DTO, mirroring

Item
pub struct ChessStateDto

CmsCreatePageInput

CMS content types for the admin platform.

Item
pub struct CmsCreatePageInput

CmsTranslationInput

CMS content types for the admin platform.

Item
pub struct CmsTranslationInput

ContentPage

CMS content types for the admin platform.

Item
pub struct ContentPage

CreatePageRequest

CMS content types for the admin platform.

Item
pub struct CreatePageRequest

PageListQuery

CMS content types for the admin platform.

Item
pub struct PageListQuery
PageListQuery :: fn default() -> Self

PageStatus

CMS content types for the admin platform.

Item
pub enum PageStatus
PageStatus :: fn as_str(& self) -> & 'static str

PageSummary

CMS content types for the admin platform.

Item
pub struct PageSummary

PublishPageRequest

CMS content types for the admin platform.

Item
pub struct PublishPageRequest

UpdatePageRequest

CMS content types for the admin platform.

Item
pub struct UpdatePageRequest

CmsFacetCount

DTOs mirroring application_cms::services::search's real wire shape (Sprint 20

Item
pub struct CmsFacetCount

CmsSearchHit

DTOs mirroring application_cms::services::search's real wire shape (Sprint 20

Item
pub enum CmsSearchHit
CmsSearchHit :: fn display_title(& self) -> String
CmsSearchHit :: fn entity_type(& self) -> & 'static str

CmsSearchResponse

DTOs mirroring application_cms::services::search's real wire shape (Sprint 20

Item
pub struct CmsSearchResponse

AddCommentRequest

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct AddCommentRequest

AddReactionRequest

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct AddReactionRequest

CommentDetail

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct CommentDetail

CommentSummary

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct CommentSummary

CommentsListQuery

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct CommentsListQuery

CreateThreadRequest

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct CreateThreadRequest

EditCommentRequest

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct EditCommentRequest

MentionSummary

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct MentionSummary

ReactionCount

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct ReactionCount

ThreadDetail

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct ThreadDetail

ThreadSummary

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct ThreadSummary

UpdateThreadStatusRequest

Comments DTOs for threads, comments, mentions, and reactions.

Item
pub struct UpdateThreadStatusRequest

AddContactNoteRequest

Contact submission + staff-notes DTOs for the admin surface.

Item
pub struct AddContactNoteRequest

ContactDetail

Contact submission + staff-notes DTOs for the admin surface.

Item
pub struct ContactDetail

ContactNote

Contact submission + staff-notes DTOs for the admin surface.

Item
pub struct ContactNote

ContactSubmission

Contact submission + staff-notes DTOs for the admin surface.

Item
pub struct ContactSubmission

ContactChannelDto

Contact-channel DTOs — sprint 3.83 (application-contact admin router).

Item
pub struct ContactChannelDto

CreateContactChannelRequest

Contact-channel DTOs — sprint 3.83 (application-contact admin router).

Item
pub struct CreateContactChannelRequest

UpdateContactChannelRequest

Contact-channel DTOs — sprint 3.83 (application-contact admin router).

Item
pub struct UpdateContactChannelRequest

CreateOpportunityRequest

CRM pipeline DTOs (Stage/Opportunity), mirroring domain-crm's wire

Item
pub struct CreateOpportunityRequest

CreateStageRequest

CRM pipeline DTOs (Stage/Opportunity), mirroring domain-crm's wire

Item
pub struct CreateStageRequest

ItemsResponse

CRM pipeline DTOs (Stage/Opportunity), mirroring domain-crm's wire

Item
pub struct ItemsResponse<T>

MoneyDto

CRM pipeline DTOs (Stage/Opportunity), mirroring domain-crm's wire

Item
pub struct MoneyDto

MoveStageRequest

CRM pipeline DTOs (Stage/Opportunity), mirroring domain-crm's wire

Item
pub struct MoveStageRequest

OpportunityDto

CRM pipeline DTOs (Stage/Opportunity), mirroring domain-crm's wire

Item
pub struct OpportunityDto

StageDto

CRM pipeline DTOs (Stage/Opportunity), mirroring domain-crm's wire

Item
pub struct StageDto

DirectoryListQuery

Directory listing types for the admin platform.

Item
pub struct DirectoryListQuery

DirectoryListingDto

Directory listing types for the admin platform.

Item
pub struct DirectoryListingDto

DirectoryStats

Directory listing types for the admin platform.

Item
pub struct DirectoryStats

ListingStatus

Directory listing types for the admin platform.

Item
pub enum ListingStatus
ListingStatus :: fn as_str(& self) -> & 'static str
ListingStatus :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result

ListingSummary

Directory listing types for the admin platform.

Item
pub struct ListingSummary

ListingType

Directory listing types for the admin platform.

Item
pub enum ListingType
ListingType :: fn as_str(& self) -> & 'static str
ListingType :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result

TypeCount

Directory listing types for the admin platform.

Item
pub struct TypeCount

UpdateListingRequest

Directory listing types for the admin platform.

Item
pub struct UpdateListingRequest

UpdateListingStatusRequest

Directory listing types for the admin platform.

Item
pub struct UpdateListingStatusRequest

CreateDiscoveryRunRequest

Business-discovery DTOs (sprint 3.69 Phase 1 item 3/4) for admin API

Item
pub struct CreateDiscoveryRunRequest

DiscoveryCandidateDto

Business-discovery DTOs (sprint 3.69 Phase 1 item 3/4) for admin API

Item
pub struct DiscoveryCandidateDto

DiscoveryCostEstimate

Business-discovery DTOs (sprint 3.69 Phase 1 item 3/4) for admin API

Item
pub struct DiscoveryCostEstimate

DiscoveryRunDto

Business-discovery DTOs (sprint 3.69 Phase 1 item 3/4) for admin API

Item
pub struct DiscoveryRunDto

ImportCandidateRequest

Business-discovery DTOs (sprint 3.69 Phase 1 item 3/4) for admin API

Item
pub struct ImportCandidateRequest

MarkDuplicateRequest

Business-discovery DTOs (sprint 3.69 Phase 1 item 3/4) for admin API

Item
pub struct MarkDuplicateRequest

DlpAlertRow

DLP masked-alert viewer DTOs, mirroring application_dlp::repo::CaptureRow's wire

Item
pub struct DlpAlertRow

ApiError:ApiError

Standardized API error schema.

Item
pub struct ApiError

ApiError:already

Standardized API error schema.

Item
ApiError :: fn already_exists(resource : impl Into <String>) -> Self

ApiError:fmt

Standardized API error schema.

Item
ApiError :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result

ApiError:forbidden

Standardized API error schema.

Item
ApiError :: fn forbidden(message : impl Into <String>) -> Self

ApiError:internal

Standardized API error schema.

Item
ApiError :: fn internal_error() -> Self

ApiError:invalid

Standardized API error schema.

Item
ApiError :: fn invalid_credentials() -> Self

ApiError:new

Standardized API error schema.

Item
ApiError :: fn new(code : ErrorCode, message : impl Into <String>) -> Self

ApiError:not

Standardized API error schema.

Item
ApiError :: fn not_found(resource : impl Into <String>) -> Self

ApiError:rate

Standardized API error schema.

Item
ApiError :: fn rate_limited() -> Self

ApiError:unauthenticated

Standardized API error schema.

Item
ApiError :: fn unauthenticated() -> Self

ApiError:unauthorized

Standardized API error schema.

Item
ApiError :: fn unauthorized() -> Self

ApiError:validation

Standardized API error schema.

Item
ApiError :: fn validation_failed() -> Self

ApiError:with

Standardized API error schema.

Item
ApiError :: fn with_details(mut self, details : impl Into <String>) -> Self
ApiError :: fn with_field_error(mut self, error : FieldError) -> Self
ApiError :: fn with_field_errors(mut self, errors : Vec <FieldError>) -> Self
ApiError :: fn with_metadata(mut self, key : impl Into <String>, value : serde_json::Value) -> Self
ApiError :: fn with_request_id(mut self, request_id : impl Into <String>) -> Self

ErrorCode

Standardized API error schema.

Item
pub enum ErrorCode
ErrorCode :: fn http_status(& self) -> u16

FieldError

Standardized API error schema.

Item
pub struct FieldError
FieldError :: fn new(field : impl Into <String>, message : impl Into <String>) -> Self
FieldError :: fn with_code(mut self, code : impl Into <String>) -> Self

RecentEmailDto

Recent-emails dashboard widget DTO, mirroring gmail_recent::RecentEmail's

Item
pub struct RecentEmailDto

RecentEmailsResponse

Recent-emails dashboard widget DTO, mirroring gmail_recent::RecentEmail's

Item
pub struct RecentEmailsResponse

ChartResponse

Chart-of-accounts DTOs for the staff-ui SPA, mirroring

Item
pub struct ChartResponse

ChartRowDto

Chart-of-accounts DTOs for the staff-ui SPA, mirroring

Item
pub struct ChartRowDto

CreateAccountRequest

Chart-of-accounts DTOs for the staff-ui SPA, mirroring

Item
pub struct CreateAccountRequest

matches (other)

The /api/matches contract — the grid that replaces ghosting.

Item
fn match_page(items : Vec <MatchSummary>, page_info : PageInfo) -> MatchListResponse

DeclineRequest

The /api/matches contract — the grid that replaces ghosting.

Item
pub struct DeclineRequest

DeclineResponse

The /api/matches contract — the grid that replaces ghosting.

Item
pub struct DeclineResponse

MatchListResponse

The /api/matches contract — the grid that replaces ghosting.

Item
pub type MatchListResponse: ListResponse <MatchSummary>

MatchSummary

The /api/matches contract — the grid that replaces ghosting.

Item
pub struct MatchSummary

AssetType

Media library types for the admin platform.

Item
pub enum AssetType
AssetType :: fn from_mime(mime : & str) -> Self

AssetVisibility

Media library types for the admin platform.

Item
pub enum AssetVisibility

BulkUploadResponse

Media library types for the admin platform.

Item
pub struct BulkUploadResponse

ExifDto

Media library types for the admin platform.

Item
pub struct ExifDto

MediaAsset

Media library types for the admin platform.

Item
pub struct MediaAsset

MediaListQuery

Media library types for the admin platform.

Item
pub struct MediaListQuery
MediaListQuery :: fn default() -> Self

MediaSummary

Media library types for the admin platform.

Item
pub struct MediaSummary

MediaVariant

Media library types for the admin platform.

Item
pub struct MediaVariant

PresignedUrlResponse

Media library types for the admin platform.

Item
pub struct PresignedUrlResponse

UpdateMediaRequest

Media library types for the admin platform.

Item
pub struct UpdateMediaRequest

UploadError

Media library types for the admin platform.

Item
pub struct UploadError

UploadResponse

Media library types for the admin platform.

Item
pub struct UploadResponse

BulkNotificationRequest

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct BulkNotificationRequest

CreateTemplateRequest

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct CreateTemplateRequest

MarkReadRequest

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct MarkReadRequest

NotificationChannel

Notifications DTOs for notifications, templates, and preferences.

Item
pub enum NotificationChannel

NotificationDetail

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct NotificationDetail

NotificationStats

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct NotificationStats

NotificationStatus

Notifications DTOs for notifications, templates, and preferences.

Item
pub enum NotificationStatus

NotificationSummary

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct NotificationSummary

NotificationsListQuery

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct NotificationsListQuery

PreferenceSummary

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct PreferenceSummary

PreferenceUpdate

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct PreferenceUpdate

SendNotificationRequest

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct SendNotificationRequest

TemplateSummary

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct TemplateSummary

TypeCount

Directory listing types for the admin platform.

Item
pub struct TypeCount

UpdatePreferencesRequest

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct UpdatePreferencesRequest

UserPreferences

Notifications DTOs for notifications, templates, and preferences.

Item
pub struct UserPreferences

CreateOrganizationRequest

Organization/Parties DTOs for admin API communication.

Item
pub struct CreateOrganizationRequest

OrganizationDetail

Organization/Parties DTOs for admin API communication.

Item
pub struct OrganizationDetail

OrganizationSummary

Organization/Parties DTOs for admin API communication.

Item
pub struct OrganizationSummary

UpdateOrganizationRequest

Organization/Parties DTOs for admin API communication.

Item
pub struct UpdateOrganizationRequest

FilterCondition

Pagination, search, filter, and sort library crates.

Item
pub struct FilterCondition

FilterOp

Pagination, search, filter, and sort library crates.

Item
pub enum FilterOp

ListQuery

Pagination, search, filter, and sort library crates.

Item
pub struct ListQuery
ListQuery :: fn default() -> Self
ListQuery :: fn new() -> Self
ListQuery :: fn with_search(mut self, search : impl Into <String>) -> Self
ListQuery :: fn with_page(mut self, page : u32) -> Self
ListQuery :: fn with_page_size(mut self, page_size : u32) -> Self
ListQuery :: fn with_sort(mut self, field : impl Into <String>, order : SortOrder) -> Self
ListQuery :: fn with_filter(mut self, field : impl Into <String>, value : impl Into <String>) -> Self
ListQuery :: fn offset(& self) -> u32
ListQuery :: fn limit(& self) -> u32

ListResponse

Pagination, search, filter, and sort library crates.

Item
pub struct ListResponse<T>

ListResponse<T>

Pagination, search, filter, and sort library crates.

Item
ListResponse<T> :: fn new(items : Vec <T>, page_info : PageInfo) -> Self
ListResponse<T> :: fn from_query(items : Vec <T>, query : & ListQuery, total : u64) -> Self
ListResponse<T> :: fn empty(query : & ListQuery) -> Self
ListResponse<T> :: fn map <U, F : FnMut(T) -> U>(self, f : F) -> ListResponse <U>

PageInfo

Pagination, search, filter, and sort library crates.

Item
pub struct PageInfo
PageInfo :: fn from_query(query : & ListQuery, total : u64) -> Self
PageInfo :: fn new(page : u32, page_size : u32, total : u64) -> Self

SortOrder

Pagination, search, filter, and sort library crates.

Item
pub enum SortOrder

SortSpec

Pagination, search, filter, and sort library crates.

Item
pub struct SortSpec
SortSpec :: fn new(field : impl Into <String>) -> Self
SortSpec :: fn desc(field : impl Into <String>) -> Self

CreatePartyAddressRequest

Party-address DTOs — sprint 3.93 (application-parties's

Item
pub struct CreatePartyAddressRequest

PartyAddressDto

Party-address DTOs — sprint 3.93 (application-parties's

Item
pub struct PartyAddressDto

UpdatePartyAddressRequest

Party-address DTOs — sprint 3.93 (application-parties's

Item
pub struct UpdatePartyAddressRequest

CreatePersonRequest

Person/Parties DTOs for admin API communication.

Item
pub struct CreatePersonRequest

PersonDetail

Person/Parties DTOs for admin API communication.

Item
pub struct PersonDetail

PersonSummary

Person/Parties DTOs for admin API communication.

Item
pub struct PersonSummary

UpdatePersonRequest

Person/Parties DTOs for admin API communication.

Item
pub struct UpdatePersonRequest

CreatePostRequest

Blog post DTOs for the admin + public platform surfaces.

Item
pub struct CreatePostRequest

Post

Blog post DTOs for the admin + public platform surfaces.

Item
pub struct Post

PostListQuery

Blog post DTOs for the admin + public platform surfaces.

Item
pub struct PostListQuery

UpdatePostRequest

Blog post DTOs for the admin + public platform surfaces.

Item
pub struct UpdatePostRequest

Redirect

URL redirect DTOs for the admin platform.

Item
pub struct Redirect

UpsertRedirectRequest

URL redirect DTOs for the admin platform.

Item
pub struct UpsertRedirectRequest

CreateRelationshipRequest

Party relationship DTOs for admin API communication.

Item
pub struct CreateRelationshipRequest

RelationshipDto

Party relationship DTOs for admin API communication.

Item
pub struct RelationshipDto

UpdateRelationshipRequest

Party relationship DTOs for admin API communication.

Item
pub struct UpdateRelationshipRequest

CancelReservationRequest

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct CancelReservationRequest

ConfirmationLookupRequest

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct ConfirmationLookupRequest

CreateHoldRequest

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct CreateHoldRequest

CreatePoolRequest

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct CreatePoolRequest

CreateReservationRequest

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct CreateReservationRequest

ExtendHoldRequest

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct ExtendHoldRequest

HoldDetail

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct HoldDetail

HoldStatus

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub enum HoldStatus

HoldSummary

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct HoldSummary

PoolCapacityStats

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct PoolCapacityStats

PoolDetail

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct PoolDetail

PoolStatus

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub enum PoolStatus

PoolSummary

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct PoolSummary

PoolsListQuery

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct PoolsListQuery

ReservationDetail

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct ReservationDetail

ReservationStatus

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub enum ReservationStatus

ReservationSummary

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct ReservationSummary

ReservationsListQuery

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct ReservationsListQuery

UpdatePoolRequest

Reservations DTOs for capacity pools, holds, and reservations.

Item
pub struct UpdatePoolRequest

ApiResponse

Common response wrappers.

Item
pub enum ApiResponse<T>

ApiResponse<T>

Common response wrappers.

Item
ApiResponse<T> :: fn success(data : T) -> Self
ApiResponse<T> :: fn success_with_message(data : T, message : impl Into <String>) -> Self
ApiResponse<T> :: fn error(error : crate::ApiError) -> Self
ApiResponse<T> :: fn is_success(& self) -> bool
ApiResponse<T> :: fn is_error(& self) -> bool
ApiResponse<T> :: fn data(& self) -> Option <& T>
ApiResponse<T> :: fn error_ref(& self) -> Option <& crate::ApiError>

DataResponse

Common response wrappers.

Item
pub struct DataResponse<T>

DataResponse<T>

Common response wrappers.

Item
DataResponse<T> :: fn new(data : T) -> Self
DataResponse<T> :: fn with_message(mut self, message : impl Into <String>) -> Self
DataResponse<T> :: fn with_request_id(mut self, request_id : impl Into <String>) -> Self

EmptyResponse

Common response wrappers.

Item
pub struct EmptyResponse
EmptyResponse :: fn ok() -> Self
EmptyResponse :: fn with_message(message : impl Into <String>) -> Self

HealthResponse

Common response wrappers.

Item
pub struct HealthResponse
HealthResponse :: fn healthy(version : impl Into <String>) -> Self

HealthStatus

Common response wrappers.

Item
pub enum HealthStatus

Review

Ratings + reviews DTOs for the admin + public platform surfaces.

Item
pub struct Review

ReviewListQuery

Ratings + reviews DTOs for the admin + public platform surfaces.

Item
pub struct ReviewListQuery

UpsertReviewRequest

Ratings + reviews DTOs for the admin + public platform surfaces.

Item
pub struct UpsertReviewRequest

RevisionDetail

Page version DTOs.

Item
pub struct RevisionDetail

RevisionDiff

Page version DTOs.

Item
pub struct RevisionDiff

RevisionSummary

Page version DTOs.

Item
pub struct RevisionSummary

AddAvailabilityRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct AddAvailabilityRequest

AddExceptionRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct AddExceptionRequest

AppointmentDetail

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct AppointmentDetail

AppointmentLookupRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct AppointmentLookupRequest

AppointmentStatus

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub enum AppointmentStatus

AppointmentSummary

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct AppointmentSummary

AppointmentsListQuery

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct AppointmentsListQuery

AvailabilitySummary

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct AvailabilitySummary

BookAppointmentRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct BookAppointmentRequest

CalendarView

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct CalendarView

CancelAppointmentRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct CancelAppointmentRequest

CreateScheduleRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct CreateScheduleRequest

CreateTimeSlotRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct CreateTimeSlotRequest

ExceptionSummary

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct ExceptionSummary

ExceptionType

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub enum ExceptionType

GenerateSlotsRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct GenerateSlotsRequest

RescheduleAppointmentRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct RescheduleAppointmentRequest

ScheduleDetail

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct ScheduleDetail

ScheduleStatus

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub enum ScheduleStatus

ScheduleSummary

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct ScheduleSummary

SchedulesListQuery

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct SchedulesListQuery

TimeSlotDetail

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct TimeSlotDetail

TimeSlotStatus

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub enum TimeSlotStatus

TimeSlotSummary

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct TimeSlotSummary

TimeSlotsListQuery

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct TimeSlotsListQuery

UpdateScheduleRequest

Scheduling DTOs for schedules, time slots, and appointments.

Item
pub struct UpdateScheduleRequest

SearchHit

Unified search DTOs.

Item
pub struct SearchHit

SearchRequest

Unified search DTOs.

Item
pub struct SearchRequest

SearchResponse

Unified search DTOs.

Item
pub struct SearchResponse

SettingValue

Site settings DTOs.

Item
pub struct SettingValue

UpdateSettingsRequest

Site settings DTOs.

Item
pub struct UpdateSettingsRequest

CategorizeEntityRequest

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct CategorizeEntityRequest

CategoryDetail

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct CategoryDetail

CategoryListQuery

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct CategoryListQuery

CategorySummary

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct CategorySummary

CreateCategoryRequest

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct CreateCategoryRequest

CreateTagRequest

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct CreateTagRequest

CreateVocabularyRequest

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct CreateVocabularyRequest

TagDetail

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct TagDetail

TagEntityRequest

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct TagEntityRequest

TagListQuery

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct TagListQuery

TagSummary

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct TagSummary

UpdateCategoryRequest

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct UpdateCategoryRequest

UpdateTagRequest

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct UpdateTagRequest

UpdateVocabularyRequest

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct UpdateVocabularyRequest

VocabularyDetail

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct VocabularyDetail

VocabularyListQuery

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct VocabularyListQuery

VocabularySummary

Taxonomy DTOs for categories, tags, and hierarchies.

Item
pub struct VocabularySummary

CreateUserRequest

User management DTOs.

Item
pub struct CreateUserRequest

UpdateUserRequest

User management DTOs.

Item
pub struct UpdateUserRequest

UpdateUserRolesRequest

User management DTOs.

Item
pub struct UpdateUserRolesRequest

UserDetail

User management DTOs.

Item
pub struct UserDetail

UserListQuery

User management DTOs.

Item
pub struct UserListQuery
UserListQuery :: fn default() -> Self

UserSummary

User management DTOs.

Item
pub struct UserSummary

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

platform_dto

_36 modules: past 25 the diagram stops being readable, so the tree above is the complete picture._

Public surface

`api_keys`

ItemWhat it is
pub struct CreateApiKeyRequestRequest to create an API key.
pub struct ApiKeyCreatedReturned only on create — contains the plaintext key (shown once).
pub struct ApiKeySummaryAPI key summary for list/get responses — never contains plaintext key.

`attachments`

ItemWhat it is
pub enum VisibilityCoarse visibility tier on an attachment (D-S18C.Q1 hybrid model)
pub enum AuditClassAudit-class of an attachment (D-S18C.Q6)
pub enum GranteeTypeGrantee type for an attachment access grant.
pub enum PermissionPermission level on a grant.
pub enum GrantSourceProvenance of a grant — audit-trail-relevant.
pub struct AttachmentRaw attachment row — what /api/v1/admin/attachments/:id returns and what's nested inside list endpoints
pub struct AttachmentWithAssetAttachment + joined asset metadata — what /api/v1/admin/attachments?entity_type=X&entity_id=Y returns (one row per attachment, with the LEFT JOIN on assets).
pub struct AttachRequestInput for POST /api/v1/admin/attachments — attach an asset to a target entity.
pub struct UpdateSortOrderRequestInput for PATCH /api/v1/admin/attachments/:id/sort-order.
pub struct ReorderRequestInput for POST /api/v1/admin/attachments/reorder — bulk reorder within a target+field
pub struct AttachmentListQueryQuery string for the list endpoint.
pub struct ReorderResponseResponse for POST /api/v1/admin/attachments/reorder — confirms how many rows were touched.
pub struct GrantAn explicit per-grantee access grant on an attachment
pub struct GrantRequestInput for POST /api/v1/admin/attachments/:id/grants or the customer-side equivalent.
pub struct AttachmentAuditEventRead-only shape for GET /api/v1/admin/attachments/:id/audit

`audit_logs`

ItemWhat it is
pub struct AuditLogQueryQuery parameters for listing audit logs.
AuditLogQuery :: fn default() -> Self
pub struct AuditLogSummaryAudit log summary for list responses.
pub struct AuditLogDetailFull audit log detail.

`auth`

ItemWhat it is
pub struct LoginRequestLogin request.
pub struct TenantInfoTenant info for multi-tenant applications.
pub struct LoginResponseLogin response.
pub struct UserInfoUser information returned from auth endpoints
UserInfo :: fn has_role(& self, role : & str) -> boolCheck if user has the specified role.
UserInfo :: fn has_permission(& self, permission : & str) -> boolCheck if user has a specific permission.
UserInfo :: fn is_admin(& self) -> boolCheck if user is an admin.
pub struct ClaimsJWT Claims structure (if using JWT).
Claims :: fn is_expired(& self) -> boolCheck if claims are expired.
Claims :: fn remaining_seconds(& self) -> i64Get remaining lifetime in seconds.
pub struct ChangePasswordRequestChange password request.
pub struct PasswordResetRequestPassword reset request.
pub struct PasswordResetConfirmPassword reset confirmation.

`chess_widget`

ItemWhat it is
pub struct ChessStateDtoBoard + status snapshot, exactly as GET /admin/chess/state returns it.

`cms`

ItemWhat it is
pub enum PageStatusContent page status.
PageStatus :: fn as_str(& self) -> & 'static str
pub struct PageSummaryContent page summary for list views.
pub struct ContentPageFull content page with all fields.
pub struct CreatePageRequestRequest to create a new page
pub struct CmsCreatePageInputCanonical create-page request for the application-cms admin endpoint (POST /api/v1/admin/pages), Sprint 0.50
pub struct CmsTranslationInputOne per-locale translation carried by CmsCreatePageInput
pub struct UpdatePageRequestRequest to update an existing page.
pub struct PageListQueryQuery parameters for listing pages.
PageListQuery :: fn default() -> Self
pub struct PublishPageRequestAction to publish a page.

`cms_search`

ItemWhat it is
pub enum CmsSearchHitOne search hit
CmsSearchHit :: fn display_title(& self) -> StringA display title regardless of entity type, for a uniform list row.
CmsSearchHit :: fn entity_type(& self) -> & 'static strThe entity type tag, for a badge.
pub struct CmsFacetCount
pub struct CmsSearchResponse

`comments`

ItemWhat it is
pub struct ThreadSummaryComment thread summary for list views.
pub struct ThreadDetailFull thread details with recent comments.
pub struct CreateThreadRequestRequest to create a thread.
pub struct CommentSummaryComment summary for list views.
pub struct CommentDetailFull comment details.
pub struct AddCommentRequestRequest to add a comment.
pub struct EditCommentRequestRequest to edit a comment.
pub struct MentionSummaryMention summary.
pub struct ReactionCountReaction count for a comment.
pub struct AddReactionRequestRequest to add a reaction.
pub struct UpdateThreadStatusRequestRequest to lock/unlock a thread.
pub struct CommentsListQueryComments list query parameters.

`contact`

ItemWhat it is
pub struct ContactSubmissionA row from the contact_submissions table.
pub struct ContactNoteA staff note attached to a contact submission.
pub struct ContactDetailDetail view — submission + full notes thread.
pub struct AddContactNoteRequestInput for POST /api/v1/admin/contact/{id}/notes.

`contact_channel`

ItemWhat it is
pub struct ContactChannelDtoA contact channel for list/detail views — one shape for both, same rationale as RelationshipDto (few enough fields that a summary projection buys nothing)
pub struct CreateContactChannelRequestRequest to create a new contact channel
pub struct UpdateContactChannelRequestRequest to update an existing contact channel

`crm`

ItemWhat it is
pub struct MoneyDtoMirrors foundation_money::Money's wire shape (its custom Serialize emits {"amount": ..., "currency": ...}).
pub struct StageDtoMirrors domain_crm::Stage.
pub struct OpportunityDtoMirrors domain_crm::Opportunity.
pub struct ItemsResponse<T>{"items": ...} -- the shape application-crm's list endpoints return (unpaginated; the pipeline/stage list is small per tenant).
pub struct CreateStageRequestRequest to create a pipeline stage.
pub struct CreateOpportunityRequestRequest to create an opportunity.
pub struct MoveStageRequestRequest body for PATCH /crm/opportunities/:id/stage.

`directory`

ItemWhat it is
pub enum ListingStatusDirectory listing status.
ListingStatus :: fn as_str(& self) -> & 'static str
ListingStatus :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result
pub enum ListingTypeDirectory listing type.
ListingType :: fn as_str(& self) -> & 'static str
ListingType :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result
pub struct ListingSummarySummary of a directory listing for list views.
pub struct DirectoryListingDtoFull directory listing with all fields.
pub struct UpdateListingStatusRequestRequest to update listing status.
pub struct UpdateListingRequestRequest to update listing details.
pub struct DirectoryListQueryQuery parameters for listing directory entries.
pub struct DirectoryStatsStats for directory module dashboard widget.
pub struct TypeCountCount per listing type.

`discovery`

ItemWhat it is
pub struct CreateDiscoveryRunRequestRequest to start a discovery run
pub struct DiscoveryCostEstimateA dry-run cost estimate — shown to the operator BEFORE a real (billed) search runs
pub struct DiscoveryRunDto
pub struct DiscoveryCandidateDtoA staged candidate for the review page — "browsable with various options" (operator, sprint-3.69 item 4).
pub struct ImportCandidateRequestPOST /discovery/candidates/:id/import — creates an Organization from this candidate
pub struct MarkDuplicateRequestPOST /discovery/candidates/:id/mark-duplicate

`dlp`

ItemWhat it is
pub struct DlpAlertRowOne masked DLP capture row, exactly as GET /admin/dlp/alerts returns it.

`error`

ItemWhat it is
pub enum ErrorCodeError codes for categorizing API errors.
ErrorCode :: fn http_status(& self) -> u16Get the HTTP status code for this error code.
pub struct FieldErrorField-level validation error.
FieldError :: fn new(field : impl Into <String>, message : impl Into <String>) -> Self
FieldError :: fn with_code(mut self, code : impl Into <String>) -> Self
pub struct ApiErrorStandardized API error response
ApiError :: fn new(code : ErrorCode, message : impl Into <String>) -> SelfCreate a new API error.
ApiError :: fn with_details(mut self, details : impl Into <String>) -> SelfAdd details to the error.
ApiError :: fn with_field_error(mut self, error : FieldError) -> SelfAdd a field error.
ApiError :: fn with_field_errors(mut self, errors : Vec <FieldError>) -> SelfAdd multiple field errors.
ApiError :: fn with_metadata(mut self, key : impl Into <String>, value : serde_json::Value) -> SelfAdd metadata.
ApiError :: fn with_request_id(mut self, request_id : impl Into <String>) -> SelfSet the request ID.
ApiError :: fn unauthenticated() -> Self
ApiError :: fn unauthorized() -> Self
ApiError :: fn forbidden(message : impl Into <String>) -> Self
ApiError :: fn not_found(resource : impl Into <String>) -> Self
ApiError :: fn validation_failed() -> Self
ApiError :: fn invalid_credentials() -> Self
ApiError :: fn internal_error() -> Self
ApiError :: fn already_exists(resource : impl Into <String>) -> Self
ApiError :: fn rate_limited() -> Self
ApiError :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result

`gmail_recent`

ItemWhat it is
pub struct RecentEmailDtoOne recent-email row, exactly as GET /admin/gmail/recent returns it.
pub struct RecentEmailsResponse{"emails": ...} -- the shape GET /admin/gmail/recent returns.

`ledger`

ItemWhat it is
pub struct ChartRowDtoMirrors application_ledger_accounts's ChartRow response shape (GET /ledger/chart{"accounts": ChartRowDto, ...}).
pub struct ChartResponse{"accounts": ...} -- the shape GET /ledger/chart returns.
pub struct CreateAccountRequestRequest body for POST /ledger/accounts.

`matches`

ItemWhat it is
pub struct MatchSummaryOne person in the member's grid
pub type MatchListResponse: ListResponse <MatchSummary>GET /api/matches — one page of the grid.
fn match_page(items : Vec <MatchSummary>, page_info : PageInfo) -> MatchListResponseBuild a page of matches.
pub struct DeclineRequestPOST /api/matches/decline — end or pause conversations with one or more members
pub struct DeclineResponseWhat the server did.

`media`

ItemWhat it is
pub enum AssetVisibilityMedia asset visibility.
pub enum AssetTypeMedia asset type.
AssetType :: fn from_mime(mime : & str) -> SelfDetermine asset type from MIME type.
pub struct MediaSummaryMedia asset summary for list views.
pub struct MediaAssetFull media asset with all fields.
pub struct ExifDtoEXIF metadata for an image asset (Sprint 0.27)
pub struct MediaVariantMedia variant (thumbnail, different size, etc.)
pub struct UpdateMediaRequestRequest to update media asset metadata.
pub struct MediaListQueryQuery parameters for listing media assets.
MediaListQuery :: fn default() -> Self
pub struct UploadResponseResponse after successful media upload.
pub struct BulkUploadResponseResponse for multiple asset uploads.
pub struct UploadErrorError for individual upload failure.
pub struct PresignedUrlResponsePresigned URL response for direct upload.

`notifications`

ItemWhat it is
pub enum NotificationChannelNotification channel types.
pub enum NotificationStatusNotification status.
pub struct NotificationSummaryNotification summary for list views.
pub struct NotificationDetailFull notification details.
pub struct SendNotificationRequestRequest to send a notification.
pub struct BulkNotificationRequestRequest to send bulk notifications.
pub struct PreferenceSummaryNotification preference summary.
pub struct UserPreferencesFull notification preferences for a user.
pub struct UpdatePreferencesRequestRequest to update notification preferences.
pub struct PreferenceUpdateSingle preference update.
pub struct TemplateSummaryNotification template summary.
pub struct CreateTemplateRequestRequest to create a notification template.
pub struct NotificationsListQueryNotifications list query parameters.
pub struct MarkReadRequestMark notifications as read request.
pub struct NotificationStatsNotification stats.
pub struct TypeCountCount by type.

`organization`

ItemWhat it is
pub struct OrganizationSummaryOrganization summary for list views.
pub struct OrganizationDetailFull organization details for detail/edit views.
pub struct CreateOrganizationRequestRequest to create a new organization.
pub struct UpdateOrganizationRequestRequest to update an existing organization.

`pagination`

ItemWhat it is
pub enum SortOrderSort order direction.
pub struct SortSpecSort specification.
SortSpec :: fn new(field : impl Into <String>) -> Self
SortSpec :: fn desc(field : impl Into <String>) -> Self
pub enum FilterOpFilter operator for field-based filtering.
pub struct FilterConditionA single filter condition.
pub struct ListQueryStandard list query parameters
ListQuery :: fn default() -> Self
ListQuery :: fn new() -> SelfCreate a new list query with defaults.
ListQuery :: fn with_search(mut self, search : impl Into <String>) -> SelfSet the search query.
ListQuery :: fn with_page(mut self, page : u32) -> SelfSet the page number.
ListQuery :: fn with_page_size(mut self, page_size : u32) -> SelfSet the page size.
ListQuery :: fn with_sort(mut self, field : impl Into <String>, order : SortOrder) -> SelfAdd a sort specification.
ListQuery :: fn with_filter(mut self, field : impl Into <String>, value : impl Into <String>) -> SelfAdd a simple filter.
ListQuery :: fn offset(& self) -> u32Calculate offset for database queries.
ListQuery :: fn limit(& self) -> u32Get limit for database queries.
pub struct PageInfoPagination metadata in responses.
PageInfo :: fn from_query(query : & ListQuery, total : u64) -> SelfCreate page info from query and total count.
PageInfo :: fn new(page : u32, page_size : u32, total : u64) -> SelfCreate page info directly.
pub struct ListResponse<T>Standard paginated list response.
ListResponse<T> :: fn new(items : Vec <T>, page_info : PageInfo) -> SelfCreate a new list response.
ListResponse<T> :: fn from_query(items : Vec <T>, query : & ListQuery, total : u64) -> SelfCreate from query and total.
ListResponse<T> :: fn empty(query : & ListQuery) -> SelfCreate an empty response.
ListResponse<T> :: fn map <U, F : FnMut(T) -> U>(self, f : F) -> ListResponse <U>Map items to a different type.

`party_address`

ItemWhat it is
pub struct PartyAddressDtoA party address for list/detail views — one shape for both, same rationale as ContactChannelDto (few enough fields that a summary projection buys nothing)
pub struct CreatePartyAddressRequestRequest to create a new party address
pub struct UpdatePartyAddressRequestRequest to update an existing party address

`person`

ItemWhat it is
pub struct PersonSummaryPerson summary for list views.
pub struct PersonDetailFull person details for detail/edit views.
pub struct CreatePersonRequestRequest to create a new person.
pub struct UpdatePersonRequestRequest to update an existing person.

`posts`

ItemWhat it is
pub struct PostA blog post (a cms_pages row where page_type='post')
pub struct CreatePostRequestInput for create
pub struct UpdatePostRequestInput for update — every field optional (PATCH semantics)
pub struct PostListQueryQuery params for list endpoints

`redirects`

ItemWhat it is
pub struct RedirectA URL redirect rule from the cms_redirects table.
pub struct UpsertRedirectRequestInput for create + update — same shape per the engine's UpsertRedirectInput.

`relationship`

ItemWhat it is
pub struct RelationshipDtoA relationship for list/detail views
pub struct CreateRelationshipRequestRequest to create a new relationship
pub struct UpdateRelationshipRequestRequest to update an existing relationship.

`reservations`

ItemWhat it is
pub enum PoolStatusPool status.
pub enum HoldStatusHold status.
pub enum ReservationStatusReservation status.
pub struct PoolSummaryCapacity pool summary for list views.
pub struct PoolDetailFull capacity pool details.
pub struct CreatePoolRequestRequest to create a capacity pool.
pub struct UpdatePoolRequestRequest to update a capacity pool.
pub struct HoldSummaryHold summary for list views.
pub struct HoldDetailFull hold details.
pub struct CreateHoldRequestRequest to create a hold.
pub struct ExtendHoldRequestRequest to extend a hold.
pub struct ReservationSummaryReservation summary for list views.
pub struct ReservationDetailFull reservation details.
pub struct CreateReservationRequestRequest to create a reservation directly.
pub struct CancelReservationRequestRequest to cancel a reservation.
pub struct ConfirmationLookupRequestReservation lookup by confirmation code.
pub struct PoolsListQueryPools list query parameters.
pub struct ReservationsListQueryReservations list query parameters.
pub struct PoolCapacityStatsPool capacity stats.

`response`

ItemWhat it is
pub enum ApiResponse<T>Generic API response wrapper
ApiResponse<T> :: fn success(data : T) -> SelfCreate a success response with data.
ApiResponse<T> :: fn success_with_message(data : T, message : impl Into <String>) -> SelfCreate a success response with data and message.
ApiResponse<T> :: fn error(error : crate::ApiError) -> SelfCreate an error response.
ApiResponse<T> :: fn is_success(& self) -> boolCheck if response is successful.
ApiResponse<T> :: fn is_error(& self) -> boolCheck if response is an error.
ApiResponse<T> :: fn data(& self) -> Option <& T>Get the data if successful.
ApiResponse<T> :: fn error_ref(& self) -> Option <& crate::ApiError>Get the error if failed.
pub struct DataResponse<T>Simple data response wrapper (no envelope)
DataResponse<T> :: fn new(data : T) -> Self
DataResponse<T> :: fn with_message(mut self, message : impl Into <String>) -> Self
DataResponse<T> :: fn with_request_id(mut self, request_id : impl Into <String>) -> Self
pub struct EmptyResponseEmpty success response.
EmptyResponse :: fn ok() -> Self
EmptyResponse :: fn with_message(message : impl Into <String>) -> Self
pub struct HealthResponseHealth check response.
pub enum HealthStatus
HealthResponse :: fn healthy(version : impl Into <String>) -> Self

`reviews`

ItemWhat it is
pub struct ReviewA review row from the reviews table.
pub struct UpsertReviewRequest
pub struct ReviewListQueryQuery params for list endpoints

`revisions`

ItemWhat it is
pub struct RevisionSummaryVersion summary for list responses.
pub struct RevisionDetailFull version detail including page content at that version.
pub struct RevisionDiffDiff between two versions.

`scheduling`

ItemWhat it is
pub enum ScheduleStatusSchedule status.
pub enum TimeSlotStatusTime slot status.
pub enum AppointmentStatusAppointment status.
pub enum ExceptionTypeException type.
pub struct ScheduleSummarySchedule summary for list views.
pub struct ScheduleDetailFull schedule details.
pub struct CreateScheduleRequestRequest to create a schedule.
pub struct UpdateScheduleRequestRequest to update a schedule.
pub struct AvailabilitySummaryAvailability block summary.
pub struct AddAvailabilityRequestRequest to add availability.
pub struct TimeSlotSummaryTime slot summary for list views.
pub struct TimeSlotDetailFull time slot details.
pub struct CreateTimeSlotRequestRequest to create a time slot.
pub struct GenerateSlotsRequestRequest to generate time slots from availability.
pub struct AppointmentSummaryAppointment summary for list views.
pub struct AppointmentDetailFull appointment details.
pub struct BookAppointmentRequestRequest to book an appointment.
pub struct CancelAppointmentRequestRequest to cancel an appointment.
pub struct RescheduleAppointmentRequestRequest to reschedule an appointment.
pub struct ExceptionSummarySchedule exception summary.
pub struct AddExceptionRequestRequest to add a schedule exception.
pub struct SchedulesListQuerySchedules list query parameters.
pub struct TimeSlotsListQueryTime slots list query parameters.
pub struct AppointmentsListQueryAppointments list query parameters.
pub struct AppointmentLookupRequestAppointment lookup by confirmation code.
pub struct CalendarViewCalendar view data.

`search`

ItemWhat it is
pub struct SearchRequestSearch request query parameters.
pub struct SearchResponseSearch response with results, pagination, and facets.
pub struct SearchHitA single search result hit.

`settings`

ItemWhat it is
pub struct SettingValueA single setting value with metadata.
pub struct UpdateSettingsRequestRequest to update settings (partial merge).

`taxonomy`

ItemWhat it is
pub struct CategorySummaryCategory summary for list views.
pub struct CategoryDetailFull category details.
pub struct CreateCategoryRequestRequest to create a category.
pub struct UpdateCategoryRequestRequest to update a category.
pub struct TagSummaryTag summary for list views.
pub struct TagDetailFull tag details.
pub struct CreateTagRequestRequest to create a tag.
pub struct UpdateTagRequestRequest to update a tag.
pub struct VocabularySummaryVocabulary summary.
pub struct VocabularyDetailFull vocabulary details.
pub struct CreateVocabularyRequestRequest to create a vocabulary.
pub struct UpdateVocabularyRequestRequest to update a vocabulary.
pub struct VocabularyListQueryVocabulary list query parameters.
pub struct CategoryListQueryCategory list query parameters.
pub struct TagListQueryTag list query parameters.
pub struct TagEntityRequestRequest to tag an entity.
pub struct CategorizeEntityRequestRequest to categorize an entity.

`users`

ItemWhat it is
pub struct UserListQueryQuery parameters for listing users.
UserListQuery :: fn default() -> Self
pub struct CreateUserRequestRequest to create a user.
pub struct UpdateUserRequestRequest to update a user.
pub struct UpdateUserRolesRequestRequest to update user roles.
pub struct UserSummaryUser summary for list responses.
pub struct UserDetailFull user detail.

Re-exports. Exported here, defined elsewhere.

ExportDefined in
DlpAlertRowdlp::DlpAlertRow
{AddContactNoteRequest,ContactDetail,ContactNote,ContactSubmission}contact::{AddContactNoteRequest,ContactDetail,ContactNote,ContactSubmission}
{ApiError,ErrorCode,FieldError}error::{ApiError,ErrorCode,FieldError}
{ApiKeyCreated,ApiKeySummary,CreateApiKeyRequest}api_keys::{ApiKeyCreated,ApiKeySummary,CreateApiKeyRequest}
{ApiResponse,DataResponse,EmptyResponse,HealthResponse}response::{ApiResponse,DataResponse,EmptyResponse,HealthResponse}
{AssetType,AssetVisibility,BulkUploadResponse,ExifDto,MediaAsset,MediaListQuery,MediaSummary,MediaVariant,PresignedUrlResponse,UpdateMediaRequest,UploadError,UploadResponse,}media::{AssetType,AssetVisibility,BulkUploadResponse,ExifDto,MediaAsset,MediaListQuery,MediaSummary,MediaVariant,PresignedUrlResponse,UpdateMediaRequest,UploadError,UploadResponse,}
{AttachRequest,Attachment,AttachmentAuditEvent,AttachmentListQuery,AttachmentWithAsset,AuditClass,Grant,GrantRequest,GrantSource,GranteeType,Permission,ReorderRequest,ReorderResponse,UpdateSortOrderRequest,Visibility,}attachments::{AttachRequest,Attachment,AttachmentAuditEvent,AttachmentListQuery,AttachmentWithAsset,AuditClass,Grant,GrantRequest,GrantSource,GranteeType,Permission,ReorderRequest,ReorderResponse,UpdateSortOrderRequest,Visibility,}
{AuditLogDetail,AuditLogQuery,AuditLogSummary}audit_logs::{AuditLogDetail,AuditLogQuery,AuditLogSummary}
{Claims,LoginRequest,LoginResponse,UserInfo}auth::{Claims,LoginRequest,LoginResponse,UserInfo}
{CmsCreatePageInput,CmsTranslationInput,ContentPage,CreatePageRequest,PageListQuery,PageStatus,PageSummary,PublishPageRequest,UpdatePageRequest,}cms::{CmsCreatePageInput,CmsTranslationInput,ContentPage,CreatePageRequest,PageListQuery,PageStatus,PageSummary,PublishPageRequest,UpdatePageRequest,}
{CmsFacetCount,CmsSearchHit,CmsSearchResponse}cms_search::{CmsFacetCount,CmsSearchHit,CmsSearchResponse}
{ContactChannelDto,CreateContactChannelRequest,UpdateContactChannelRequest,}contact_channel::{ContactChannelDto,CreateContactChannelRequest,UpdateContactChannelRequest,}
{CreateDiscoveryRunRequest,DiscoveryCandidateDto,DiscoveryCostEstimate,DiscoveryRunDto,ImportCandidateRequest,MarkDuplicateRequest,}discovery::{CreateDiscoveryRunRequest,DiscoveryCandidateDto,DiscoveryCostEstimate,DiscoveryRunDto,ImportCandidateRequest,MarkDuplicateRequest,}
{CreateOpportunityRequestasCreateCrmOpportunityRequest,CreateStageRequestasCreateCrmStageRequest,ItemsResponse,MoneyDto,MoveStageRequest,OpportunityDto,StageDto,}crm::{CreateOpportunityRequestasCreateCrmOpportunityRequest,CreateStageRequestasCreateCrmStageRequest,ItemsResponse,MoneyDto,MoveStageRequest,OpportunityDto,StageDto,}
{CreateOrganizationRequest,OrganizationDetail,OrganizationSummary,UpdateOrganizationRequest,}organization::{CreateOrganizationRequest,OrganizationDetail,OrganizationSummary,UpdateOrganizationRequest,}
{CreatePartyAddressRequest,PartyAddressDto,UpdatePartyAddressRequest}party_address::{CreatePartyAddressRequest,PartyAddressDto,UpdatePartyAddressRequest}
{CreatePersonRequest,PersonDetail,PersonSummary,UpdatePersonRequest}person::{CreatePersonRequest,PersonDetail,PersonSummary,UpdatePersonRequest}
{CreatePostRequest,Post,PostListQuery,UpdatePostRequest}posts::{CreatePostRequest,Post,PostListQuery,UpdatePostRequest}
{CreateRelationshipRequest,RelationshipDto,UpdateRelationshipRequest}relationship::{CreateRelationshipRequest,RelationshipDto,UpdateRelationshipRequest}
{CreateUserRequest,UpdateUserRequest,UpdateUserRolesRequest,UserDetail,UserListQuery,UserSummary,}users::{CreateUserRequest,UpdateUserRequest,UpdateUserRolesRequest,UserDetail,UserListQuery,UserSummary,}
{DirectoryListQuery,DirectoryListingDto,DirectoryStats,ListingStatus,ListingSummary,ListingType,TypeCount,UpdateListingRequest,UpdateListingStatusRequest,}directory::{DirectoryListQuery,DirectoryListingDto,DirectoryStats,ListingStatus,ListingSummary,ListingType,TypeCount,UpdateListingRequest,UpdateListingStatusRequest,}
{ListQuery,ListResponse,PageInfo,SortOrder}pagination::{ListQuery,ListResponse,PageInfo,SortOrder}
{Redirect,UpsertRedirectRequest}redirects::{Redirect,UpsertRedirectRequest}
{Review,ReviewListQuery,UpsertReviewRequest}reviews::{Review,ReviewListQuery,UpsertReviewRequest}
{RevisionDetail,RevisionDiff,RevisionSummary}revisions::{RevisionDetail,RevisionDiff,RevisionSummary}
{SearchHit,SearchRequest,SearchResponse}search::{SearchHit,SearchRequest,SearchResponse}
{SettingValue,UpdateSettingsRequest}settings::{SettingValue,UpdateSettingsRequest}

Boundary

Depends on no other workspace tier.

Shares tier platform with 9 other crates: platform-api, platform-corpus-console, platform-customer-ui, platform-disclosure-lab, platform-html-components, platform-leptos-components, platform-privacy-scan-api, platform-staff-ui, … (9 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)platform
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/platform/dto
Vocabulary in force (lexicon)current

Dependencies

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
chrono^0.4serdenoalways
rust_decimal^1serdenoalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
uuid^1v4, serde, jsnoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio-test^0.4noalways

Build. None.

Depended on by. 27 workspace crates.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  consumers["27 consumer crates"] -->|uses| SELF
  SELF["platform-dto"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libplatform_dto`src/lib.rs`
testfield_coverage`tests/field_coverage.rs`

Error model

Error typeNamed by
ApiErrordeclared, no public signature returns it
FieldErrordeclared, no public signature returns it
UploadErrordeclared, no public signature returns it

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

27 workspace crates depend on this one: application-agreements, application-ai, application-analytics, application-approvals, application-auth, application-calendar, application-catalog, application-classify, application-cms, application-comments, application-contact, application-core, … (27 total).

Verification

KindCount
Unit tests17
Integration tests6
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
api_keys309
attachments15020
audit_logs303
auth8013
chess_widget101
cms9016
cms_search302
comments12010
contact404
contact_channel306
crm707
directory906
discovery603
dlp101
error3033
gmail_recent202
ledger303
matches500
media12021
notifications16013
organization408
pagination7016
party_address306
person408
posts404
redirects203
relationship304
reservations19016
response501
reviews305
revisions303
scheduling26021
search305
settings202
taxonomy17015
users606

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc267302
Public modules with a //! block3636
pie showData
    title Public items with rustdoc
    "Documented" : 267
    "No rustdoc detected" : 35

Metrics

MetricValue
Rust source files37
Source lines5012
Code lines3769
Public API items302
Public modules36
Tests23
Examples0
Cargo features0
Direct runtime dependencies6
Workspace reverse dependencies27
pie showData
    title Public API by kind
    "enum" : 25
    "function" : 1
    "method" : 66
    "struct" : 209
    "type alias" : 1
pie showData
    title Rust source composition
    "Code" : 3769
    "Blank or comment" : 1243

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las platform · Manual