#[non_exhaustive]pub struct ImportStatefileRequest {
pub parent: String,
pub lock_id: i64,
pub skip_draft: bool,
/* private fields */
}Expand description
A request to import a state file passed to a ‘ImportStatefile’ call.
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 in whose context the statefile is listed. The parent value is in the format: ‘projects/{project_id}/locations/{location}/deployments/{deployment}’.
lock_id: i64Required. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment.
skip_draft: boolOptional.
Implementations§
Source§impl ImportStatefileRequest
impl ImportStatefileRequest
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_lock_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_lock_id<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_skip_draft<T: Into<bool>>(self, v: T) -> Self
pub fn set_skip_draft<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ImportStatefileRequest
impl Clone for ImportStatefileRequest
Source§fn clone(&self) -> ImportStatefileRequest
fn clone(&self) -> ImportStatefileRequest
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 ImportStatefileRequest
impl Debug for ImportStatefileRequest
Source§impl Default for ImportStatefileRequest
impl Default for ImportStatefileRequest
Source§fn default() -> ImportStatefileRequest
fn default() -> ImportStatefileRequest
Returns the “default value” for a type. Read more
Source§impl Message for ImportStatefileRequest
impl Message for ImportStatefileRequest
Source§impl PartialEq for ImportStatefileRequest
impl PartialEq for ImportStatefileRequest
impl StructuralPartialEq for ImportStatefileRequest
Auto Trait Implementations§
impl Freeze for ImportStatefileRequest
impl RefUnwindSafe for ImportStatefileRequest
impl Send for ImportStatefileRequest
impl Sync for ImportStatefileRequest
impl Unpin for ImportStatefileRequest
impl UnsafeUnpin for ImportStatefileRequest
impl UnwindSafe for ImportStatefileRequest
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