#[non_exhaustive]pub struct CreateProcessorRequest {
pub parent: String,
pub processor: Option<Processor>,
/* private fields */
}Expand description
Request message for the CreateProcessor method. Notice this request is sent to a regionalized backend service. If the ProcessorType isn’t available in that region, the creation fails.
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 (project and location) under which to create the
processor. Format: projects/{project}/locations/{location}
processor: Option<Processor>Required. The processor to be created, requires Processor.type and Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.
Implementations§
Source§impl CreateProcessorRequest
impl CreateProcessorRequest
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
Sets the value of parent.
Sourcepub fn set_processor<T>(self, v: T) -> Self
pub fn set_processor<T>(self, v: T) -> Self
Sets the value of processor.
Trait Implementations§
Source§impl Clone for CreateProcessorRequest
impl Clone for CreateProcessorRequest
Source§fn clone(&self) -> CreateProcessorRequest
fn clone(&self) -> CreateProcessorRequest
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 CreateProcessorRequest
impl Debug for CreateProcessorRequest
Source§impl Default for CreateProcessorRequest
impl Default for CreateProcessorRequest
Source§fn default() -> CreateProcessorRequest
fn default() -> CreateProcessorRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateProcessorRequest
impl Message for CreateProcessorRequest
Source§impl PartialEq for CreateProcessorRequest
impl PartialEq for CreateProcessorRequest
impl StructuralPartialEq for CreateProcessorRequest
Auto Trait Implementations§
impl Freeze for CreateProcessorRequest
impl RefUnwindSafe for CreateProcessorRequest
impl Send for CreateProcessorRequest
impl Sync for CreateProcessorRequest
impl Unpin for CreateProcessorRequest
impl UnwindSafe for CreateProcessorRequest
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