Struct async_graphql::dynamic::Subscription
source · pub struct Subscription { /* private fields */ }
Available on crate feature
dynamic-schema
only.Expand description
A GraphQL subscription type
Implementations
sourceimpl Subscription
impl Subscription
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description
sourcepub fn field(self, field: SubscriptionField) -> Self
pub fn field(self, field: SubscriptionField) -> Self
Add an field to the object
Trait Implementations
sourceimpl Debug for Subscription
impl Debug for Subscription
sourceimpl From<Subscription> for Type
impl From<Subscription> for Type
sourcefn from(subscription: Subscription) -> Self
fn from(subscription: Subscription) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl !UnwindSafe for Subscription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more