1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
//! Server Functions for Reinhardt admin panel
//!
//! This crate provides Server Functions that handle admin panel operations,
//! replacing the traditional REST API handlers with reinhardt-pages Server Functions.
//!
//! # Architecture
//!
//! Each module contains Server Functions for specific admin operations:
//! - `dashboard` - Dashboard data retrieval
//! - `list` - List view operations
//! - `detail` - Detail view operations
//! - `audit` - Persistent per-object change history
//! - `action` - Registered model actions
//! - `relation` - Search and resolve configured relation field options
//! - `create` - Create operations
//! - `update` - Update operations
//! - `delete` - Delete operations (including bulk delete)
//! - `multipart` - Storage-backed file form mutations and cleanup coordination
//! - `export` - Export operations
//! - `import` - Import operations
//! - `inline_edit` - Atomic changelist inline edits
//!
//! # Server Functions
//!
//! Server Functions use `#[server_fn]` macro and support:
//! - Automatic DI injection via `#[inject]` parameter
//! - JSON codec for complex request/response types
//! - Automatic error conversion to `ServerFnError`
//! - CSRF protection (handled automatically by reinhardt-pages)
//!
//! # Example
//!
//! ```ignore
//! use reinhardt_admin::server::dashboard::get_dashboard;
//!
//! // In your app
//! let dashboard_data = get_dashboard().await?;
//! ```
// The `#[server_fn]` proc macro generates internal modules that cannot have doc comments.
// Allow missing docs for all server function submodules.
pub
/// Error handling utilities for server functions.
pub
pub
// The server_fn macro generates undocumented marker items inside this module.
/// Request size and rate limits for server functions.
// Multipart server functions are documented in `server::multipart`; the
// server_fn macro generates an undocumented marker module beside each endpoint.
// Relation server functions are documented in `server::relation` where their
// request and authorization contracts are defined. The generated server-function
// modules cannot carry their own module-level docs. The server_fn macro also
// generates an undocumented marker module beside the documented endpoint.
pub
/// Cookie-based JWT authentication middleware for admin panel.
/// Origin guard middleware restricting admin server functions to SPA-only access.
// Server-side only modules
// Re-exports
pub use *;
pub use AdminAuthenticatedUser;
pub use get_history;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use AdminDefaultUser;