pub struct IntermediateSubscription {
pub name: String,
pub return_type: String,
pub arguments: Vec<IntermediateArgument>,
pub description: Option<String>,
pub topic: Option<String>,
pub filter: Option<IntermediateSubscriptionFilter>,
pub fields: Vec<String>,
pub deprecated: Option<IntermediateDeprecation>,
}Expand description
Subscription definition in intermediate format.
Subscriptions provide real-time event streams for GraphQL clients.
§Example JSON
{
"name": "orderUpdated",
"return_type": "Order",
"arguments": [
{"name": "orderId", "type": "ID", "nullable": true}
],
"topic": "order_events",
"filter": {
"conditions": [
{"argument": "orderId", "path": "$.id"}
]
},
"description": "Stream of order update events"
}Fields§
§name: StringSubscription name (e.g., “orderUpdated”)
return_type: StringReturn type name (e.g., “Order”)
arguments: Vec<IntermediateArgument>Subscription arguments (for filtering events)
description: Option<String>Subscription description (from docstring)
topic: Option<String>Event topic to subscribe to (e.g., “order_events”)
filter: Option<IntermediateSubscriptionFilter>Filter configuration for event matching
fields: Vec<String>Fields to project from event data
deprecated: Option<IntermediateDeprecation>Deprecation info (from @deprecated directive)
Trait Implementations§
Source§impl Clone for IntermediateSubscription
impl Clone for IntermediateSubscription
Source§fn clone(&self) -> IntermediateSubscription
fn clone(&self) -> IntermediateSubscription
Returns a duplicate of the value. Read more
1.0.0 · 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 IntermediateSubscription
impl Debug for IntermediateSubscription
Source§impl<'de> Deserialize<'de> for IntermediateSubscription
impl<'de> Deserialize<'de> for IntermediateSubscription
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
Source§impl PartialEq for IntermediateSubscription
impl PartialEq for IntermediateSubscription
Source§impl Serialize for IntermediateSubscription
impl Serialize for IntermediateSubscription
impl Eq for IntermediateSubscription
impl StructuralPartialEq for IntermediateSubscription
Auto Trait Implementations§
impl Freeze for IntermediateSubscription
impl RefUnwindSafe for IntermediateSubscription
impl Send for IntermediateSubscription
impl Sync for IntermediateSubscription
impl Unpin for IntermediateSubscription
impl UnwindSafe for IntermediateSubscription
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.