#[non_exhaustive]pub struct LinkedResource {
pub listing: String,
pub reference: Option<Reference>,
/* private fields */
}Expand description
Reference to a linked resource tracked by this Subscription.
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.listing: StringOutput only. Listing for which linked resource is created.
reference: Option<Reference>Implementations§
Source§impl LinkedResource
impl LinkedResource
pub fn new() -> Self
Sourcepub fn set_listing<T: Into<String>>(self, v: T) -> Self
pub fn set_listing<T: Into<String>>(self, v: T) -> Self
Sets the value of listing.
Sourcepub fn set_reference<T: Into<Option<Reference>>>(self, v: T) -> Self
pub fn set_reference<T: Into<Option<Reference>>>(self, v: T) -> Self
Sets the value of reference.
Note that all the setters affecting reference are mutually
exclusive.
Sourcepub fn linked_dataset(&self) -> Option<&String>
pub fn linked_dataset(&self) -> Option<&String>
The value of reference
if it holds a LinkedDataset, None if the field is not set or
holds a different branch.
Sourcepub fn set_linked_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_linked_dataset<T: Into<String>>(self, v: T) -> Self
Sets the value of reference
to hold a LinkedDataset.
Note that all the setters affecting reference are
mutually exclusive.
Sourcepub fn linked_pubsub_subscription(&self) -> Option<&String>
pub fn linked_pubsub_subscription(&self) -> Option<&String>
The value of reference
if it holds a LinkedPubsubSubscription, None if the field is not set or
holds a different branch.
Sourcepub fn set_linked_pubsub_subscription<T: Into<String>>(self, v: T) -> Self
pub fn set_linked_pubsub_subscription<T: Into<String>>(self, v: T) -> Self
Sets the value of reference
to hold a LinkedPubsubSubscription.
Note that all the setters affecting reference are
mutually exclusive.
Trait Implementations§
Source§impl Clone for LinkedResource
impl Clone for LinkedResource
Source§fn clone(&self) -> LinkedResource
fn clone(&self) -> LinkedResource
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 LinkedResource
impl Debug for LinkedResource
Source§impl Default for LinkedResource
impl Default for LinkedResource
Source§fn default() -> LinkedResource
fn default() -> LinkedResource
Returns the “default value” for a type. Read more
Source§impl Message for LinkedResource
impl Message for LinkedResource
Source§impl PartialEq for LinkedResource
impl PartialEq for LinkedResource
impl StructuralPartialEq for LinkedResource
Auto Trait Implementations§
impl Freeze for LinkedResource
impl RefUnwindSafe for LinkedResource
impl Send for LinkedResource
impl Sync for LinkedResource
impl Unpin for LinkedResource
impl UnwindSafe for LinkedResource
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