pub struct RestTomlConfig {Show 17 fields
pub enabled: bool,
pub path: String,
pub max_page_size: u64,
pub default_page_size: u64,
pub ndjson_batch_size: u64,
pub max_bulk_affected: u64,
pub max_filter_bytes: u64,
pub delete_response: DeleteResponseToml,
pub default_cache_ttl: u64,
pub cdn_max_age: Option<u64>,
pub require_auth: bool,
pub sse_heartbeat_seconds: u64,
pub max_embedding_depth: u32,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub etag: bool,
pub idempotency_ttl_seconds: u64,
}Expand description
REST transport configuration parsed from the [rest] TOML section.
All fields have defaults matching RestConfig::default() in fraiseql-core.
When enabled is false (the default), the REST transport is not mounted.
Fields§
§enabled: boolWhether the REST transport is enabled.
path: StringBase URL path for REST endpoints.
max_page_size: u64Maximum rows per page (clamps ?limit=).
default_page_size: u64Default page size when no ?limit= is specified.
ndjson_batch_size: u64Batch size for NDJSON streaming responses.
max_bulk_affected: u64Maximum affected rows for bulk PATCH/DELETE.
max_filter_bytes: u64Maximum byte length for ?filter= JSON values.
delete_response: DeleteResponseTomlHow DELETE endpoints report success: "no_content" (default) or "entity".
default_cache_ttl: u64Default result cache TTL in seconds (0 = no caching).
cdn_max_age: Option<u64>CDN s-maxage value in seconds (None = omit).
require_auth: boolWhether REST endpoints require authentication by default.
sse_heartbeat_seconds: u64SSE heartbeat interval in seconds.
max_embedding_depth: u32Maximum depth for resource embedding (?select=posts(comments)).
include: Vec<String>Allowlist of type names to expose as REST resources (empty = all).
exclude: Vec<String>Denylist of type names to exclude from REST resources.
etag: boolWhether to enable ETag / If-None-Match conditional response support.
idempotency_ttl_seconds: u64TTL in seconds for idempotency key deduplication.
Trait Implementations§
Source§impl Clone for RestTomlConfig
impl Clone for RestTomlConfig
Source§fn clone(&self) -> RestTomlConfig
fn clone(&self) -> RestTomlConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more