pub struct Subscription { /* private fields */ }Available on crate feature
dynamic-schema only.Expand description
A GraphQL subscription type
Implementations§
Source§impl 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§
Source§impl Debug for Subscription
impl Debug for Subscription
Source§impl From<Subscription> for Type
impl From<Subscription> for Type
Source§fn from(subscription: Subscription) -> Self
fn from(subscription: Subscription) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Subscription
impl !RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl !UnwindSafe for Subscription
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