pub struct TransportFlags {
pub rest: bool,
pub graphql: bool,
pub ws: bool,
pub sse: bool,
pub mqtt: bool,
pub mcp: bool,
pub grpc: bool,
}Expand description
Per-transport availability flags. All seven transports default to
true whenever @export is present on a table (no args means
“exported everywhere”); explicit false args opt out.
Fields§
§rest: boolREST CRUD over HTTP/HTTPS.
graphql: boolGraphQL field on the per-app /graphql endpoint.
ws: boolWebSocket subscription.
sse: boolServer-Sent Events streaming.
mqtt: boolMQTT publish/subscribe topic.
mcp: boolMCP tool surface ({table}_{op}).
grpc: boolgRPC method (config-only until the bridge ships).
Implementations§
Source§impl TransportFlags
impl TransportFlags
Sourcepub const fn from_set(set: TransportSet) -> Self
pub const fn from_set(set: TransportSet) -> Self
Project the canonical TransportSet
into the serialized per-transport bool shape. The one conversion
from the canonical set to this wire representation.
Trait Implementations§
Source§impl Clone for TransportFlags
impl Clone for TransportFlags
Source§fn clone(&self) -> TransportFlags
fn clone(&self) -> TransportFlags
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 moreimpl Copy for TransportFlags
Source§impl Debug for TransportFlags
impl Debug for TransportFlags
Source§impl Default for TransportFlags
impl Default for TransportFlags
Source§fn default() -> TransportFlags
fn default() -> TransportFlags
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransportFlags
impl<'de> Deserialize<'de> for TransportFlags
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransportFlags
impl RefUnwindSafe for TransportFlags
impl Send for TransportFlags
impl Sync for TransportFlags
impl Unpin for TransportFlags
impl UnsafeUnpin for TransportFlags
impl UnwindSafe for TransportFlags
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