pub struct RestConfig {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: DeleteResponse,
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 (compiled from [rest] in fraiseql.toml).
Fields§
§enabled: boolWhether the REST transport is enabled.
path: StringBase path for REST endpoints (e.g., "/rest/v1").
max_page_size: u64Maximum rows per page (clamps ?limit= and ?first=).
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: DeleteResponseHow DELETE endpoints report success.
default_cache_ttl: u64Default result cache TTL in seconds (0 = no caching).
cdn_max_age: Option<u64>CDN s-maxage value in seconds for Cache-Control headers (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>Whitelist of type names to expose as REST resources (empty = all).
exclude: Vec<String>Blacklist 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 RestConfig
impl Clone for RestConfig
Source§fn clone(&self) -> RestConfig
fn clone(&self) -> RestConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RestConfig
impl Debug for RestConfig
Source§impl Default for RestConfig
impl Default for RestConfig
Source§impl<'de> Deserialize<'de> for RestConfigwhere
RestConfig: Default,
impl<'de> Deserialize<'de> for RestConfigwhere
RestConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RestConfig
impl PartialEq for RestConfig
Source§impl Serialize for RestConfig
impl Serialize for RestConfig
impl Eq for RestConfig
impl StructuralPartialEq for RestConfig
Auto Trait Implementations§
impl Freeze for RestConfig
impl RefUnwindSafe for RestConfig
impl Send for RestConfig
impl Sync for RestConfig
impl Unpin for RestConfig
impl UnsafeUnpin for RestConfig
impl UnwindSafe for RestConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more