#[non_exhaustive]pub struct InsertRequest {
pub project: String,
pub region: String,
pub request_id: Option<String>,
pub body: Option<UrlMap>,
/* private fields */
}Available on crate feature
region-url-maps only.Expand description
Synthetic request message for the insert() method.
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.project: StringProject ID for this request.
region: StringName of the region scoping this request.
request_id: Option<String>begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
body: Option<UrlMap>Synthetic request body field for the insert() method.
Implementations§
Source§impl InsertRequest
impl InsertRequest
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_request_id<T>(self, v: T) -> Self
pub fn set_request_id<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_request_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_request_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of request_id.
§Example
ⓘ
let x = InsertRequest::new().set_or_clear_request_id(Some("example"));
let x = InsertRequest::new().set_or_clear_request_id(None::<String>);Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for InsertRequest
impl Clone for InsertRequest
Source§fn clone(&self) -> InsertRequest
fn clone(&self) -> InsertRequest
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 InsertRequest
impl Debug for InsertRequest
Source§impl Default for InsertRequest
impl Default for InsertRequest
Source§fn default() -> InsertRequest
fn default() -> InsertRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InsertRequest
impl PartialEq for InsertRequest
impl StructuralPartialEq for InsertRequest
Auto Trait Implementations§
impl !Freeze for InsertRequest
impl RefUnwindSafe for InsertRequest
impl Send for InsertRequest
impl Sync for InsertRequest
impl Unpin for InsertRequest
impl UnwindSafe for InsertRequest
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