pub struct FunctionInfo {Show 19 fields
pub name: &'static str,
pub description: Option<&'static str>,
pub kind: FunctionKind,
pub required_role: Option<&'static str>,
pub is_public: bool,
pub cache_ttl: Option<u64>,
pub timeout: Option<Duration>,
pub http_timeout: Option<Duration>,
pub rate_limit_requests: Option<u32>,
pub rate_limit_per_secs: Option<u64>,
pub rate_limit_key: Option<RateLimitKey>,
pub log_level: Option<LogLevel>,
pub table_dependencies: &'static [&'static str],
pub selected_columns: &'static [&'static str],
pub changed_columns: &'static [&'static str],
pub transactional: bool,
pub consistent: bool,
pub max_upload_size_bytes: Option<usize>,
pub requires_tenant_scope: bool,
}Expand description
Metadata for a registered query or mutation function.
Fields§
§name: &'static str§description: Option<&'static str>§kind: FunctionKind§required_role: Option<&'static str>§is_public: bool§cache_ttl: Option<u64>§timeout: Option<Duration>None falls back to the runtime default.
http_timeout: Option<Duration>Default timeout for outbound HTTP requests via the circuit-breaker client.
rate_limit_requests: Option<u32>§rate_limit_per_secs: Option<u64>§rate_limit_key: Option<RateLimitKey>§log_level: Option<LogLevel>§table_dependencies: &'static [&'static str]Compile-time extracted tables for reactive subscriptions.
selected_columns: &'static [&'static str]Columns in SELECT clauses for fine-grained invalidation.
changed_columns: &'static [&'static str]Columns written by INSERT/UPDATE for cache invalidation scoping.
transactional: boolWhether this mutation runs inside a database transaction.
consistent: boolForce reads from primary instead of replicas.
max_upload_size_bytes: Option<usize>§requires_tenant_scope: boolWhen true, runtime rejects dispatch if auth context has no tenant claim.
Trait Implementations§
Source§impl Clone for FunctionInfo
impl Clone for FunctionInfo
Source§fn clone(&self) -> FunctionInfo
fn clone(&self) -> FunctionInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionInfo
impl Debug for FunctionInfo
Source§impl From<&WebhookInfo> for FunctionInfo
impl From<&WebhookInfo> for FunctionInfo
Source§fn from(webhook: &WebhookInfo) -> Self
fn from(webhook: &WebhookInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionInfo
impl RefUnwindSafe for FunctionInfo
impl Send for FunctionInfo
impl Sync for FunctionInfo
impl Unpin for FunctionInfo
impl UnsafeUnpin for FunctionInfo
impl UnwindSafe for FunctionInfo
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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