#[non_exhaustive]pub struct SubscribeDataExchangeResponse {
pub subscription: Option<Subscription>,
/* private fields */
}Expand description
Message for response when you subscribe to a Data Exchange.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.subscription: Option<Subscription>Subscription object created from this subscribe action.
Implementations§
Source§impl SubscribeDataExchangeResponse
impl SubscribeDataExchangeResponse
pub fn new() -> Self
Sourcepub fn set_subscription<T>(self, v: T) -> Selfwhere
T: Into<Subscription>,
pub fn set_subscription<T>(self, v: T) -> Selfwhere
T: Into<Subscription>,
Sets the value of subscription.
Sourcepub fn set_or_clear_subscription<T>(self, v: Option<T>) -> Selfwhere
T: Into<Subscription>,
pub fn set_or_clear_subscription<T>(self, v: Option<T>) -> Selfwhere
T: Into<Subscription>,
Sets or clears the value of subscription.
Trait Implementations§
Source§impl Clone for SubscribeDataExchangeResponse
impl Clone for SubscribeDataExchangeResponse
Source§fn clone(&self) -> SubscribeDataExchangeResponse
fn clone(&self) -> SubscribeDataExchangeResponse
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 Default for SubscribeDataExchangeResponse
impl Default for SubscribeDataExchangeResponse
Source§fn default() -> SubscribeDataExchangeResponse
fn default() -> SubscribeDataExchangeResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubscribeDataExchangeResponse
impl PartialEq for SubscribeDataExchangeResponse
Source§fn eq(&self, other: &SubscribeDataExchangeResponse) -> bool
fn eq(&self, other: &SubscribeDataExchangeResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscribeDataExchangeResponse
Auto Trait Implementations§
impl Freeze for SubscribeDataExchangeResponse
impl RefUnwindSafe for SubscribeDataExchangeResponse
impl Send for SubscribeDataExchangeResponse
impl Sync for SubscribeDataExchangeResponse
impl Unpin for SubscribeDataExchangeResponse
impl UnwindSafe for SubscribeDataExchangeResponse
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