#[non_exhaustive]pub struct CreatePluginRequest {
pub parent: String,
pub plugin_id: String,
pub plugin: Option<Plugin>,
/* private fields */
}Expand description
The CreatePlugin method’s request.
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.parent: StringRequired. The parent resource where this plugin will be created.
Format: projects/{project}/locations/{location}.
plugin_id: StringOptional. The ID to use for the Plugin resource, which will become the final component of the Plugin’s resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance.
- If not provided, a system generated id will be used.
This value should be 4-63 characters, overall resource name which will be
of format
projects/{project}/locations/{location}/plugins/{plugin},
its length is limited to 1000 characters and valid characters are
/[a-z][A-Z][0-9]-_/.
plugin: Option<Plugin>Required. The plugin to create.
Implementations§
Source§impl CreatePluginRequest
impl CreatePluginRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_plugin_id<T: Into<String>>(self, v: T) -> Self
pub fn set_plugin_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_plugin<T>(self, v: T) -> Self
pub fn set_plugin<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_plugin<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_plugin<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreatePluginRequest
impl Clone for CreatePluginRequest
Source§fn clone(&self) -> CreatePluginRequest
fn clone(&self) -> CreatePluginRequest
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 CreatePluginRequest
impl Debug for CreatePluginRequest
Source§impl Default for CreatePluginRequest
impl Default for CreatePluginRequest
Source§fn default() -> CreatePluginRequest
fn default() -> CreatePluginRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreatePluginRequest
impl Message for CreatePluginRequest
Source§impl PartialEq for CreatePluginRequest
impl PartialEq for CreatePluginRequest
impl StructuralPartialEq for CreatePluginRequest
Auto Trait Implementations§
impl Freeze for CreatePluginRequest
impl RefUnwindSafe for CreatePluginRequest
impl Send for CreatePluginRequest
impl Sync for CreatePluginRequest
impl Unpin for CreatePluginRequest
impl UnsafeUnpin for CreatePluginRequest
impl UnwindSafe for CreatePluginRequest
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