#[non_exhaustive]pub struct ResourceConfig {
pub action_type: ActionType,
pub pubsub_topic: String,
/* private fields */
}Expand description
The configuration of resources created for a given plugin instance action.
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.action_type: ActionTypeOutput only. The type of the action.
pubsub_topic: StringOutput only. The pubsub topic to publish the data to. Format is projects/{project}/topics/{topic}
Implementations§
Source§impl ResourceConfig
impl ResourceConfig
pub fn new() -> Self
Sourcepub fn set_action_type<T: Into<ActionType>>(self, v: T) -> Self
pub fn set_action_type<T: Into<ActionType>>(self, v: T) -> Self
Sets the value of action_type.
§Example
ⓘ
use google_cloud_apihub_v1::model::ActionType;
let x0 = ResourceConfig::new().set_action_type(ActionType::SyncMetadata);
let x1 = ResourceConfig::new().set_action_type(ActionType::SyncRuntimeData);Sourcepub fn set_pubsub_topic<T: Into<String>>(self, v: T) -> Self
pub fn set_pubsub_topic<T: Into<String>>(self, v: T) -> Self
Sets the value of pubsub_topic.
§Example
ⓘ
let x = ResourceConfig::new().set_pubsub_topic("example");Trait Implementations§
Source§impl Clone for ResourceConfig
impl Clone for ResourceConfig
Source§fn clone(&self) -> ResourceConfig
fn clone(&self) -> ResourceConfig
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 ResourceConfig
impl Debug for ResourceConfig
Source§impl Default for ResourceConfig
impl Default for ResourceConfig
Source§fn default() -> ResourceConfig
fn default() -> ResourceConfig
Returns the “default value” for a type. Read more
Source§impl Message for ResourceConfig
impl Message for ResourceConfig
Source§impl PartialEq for ResourceConfig
impl PartialEq for ResourceConfig
impl StructuralPartialEq for ResourceConfig
Auto Trait Implementations§
impl Freeze for ResourceConfig
impl RefUnwindSafe for ResourceConfig
impl Send for ResourceConfig
impl Sync for ResourceConfig
impl Unpin for ResourceConfig
impl UnsafeUnpin for ResourceConfig
impl UnwindSafe for ResourceConfig
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