#[non_exhaustive]pub struct RollbackInstanceRequest {
pub name: String,
pub target_snapshot: String,
pub revision_id: String,
/* private fields */
}Expand description
Request for rollbacking a notebook instance
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.name: StringRequired. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
target_snapshot: StringRequired. The snapshot for rollback. Example: “projects/test-project/global/snapshots/krwlzipynril”.
revision_id: StringRequired. Output only. Revision Id
Implementations§
Source§impl RollbackInstanceRequest
impl RollbackInstanceRequest
pub fn new() -> Self
Sourcepub fn set_target_snapshot<T: Into<String>>(self, v: T) -> Self
pub fn set_target_snapshot<T: Into<String>>(self, v: T) -> Self
Sets the value of target_snapshot.
Sourcepub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
pub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
Sets the value of revision_id.
Trait Implementations§
Source§impl Clone for RollbackInstanceRequest
impl Clone for RollbackInstanceRequest
Source§fn clone(&self) -> RollbackInstanceRequest
fn clone(&self) -> RollbackInstanceRequest
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 RollbackInstanceRequest
impl Debug for RollbackInstanceRequest
Source§impl Default for RollbackInstanceRequest
impl Default for RollbackInstanceRequest
Source§fn default() -> RollbackInstanceRequest
fn default() -> RollbackInstanceRequest
Returns the “default value” for a type. Read more
Source§impl Message for RollbackInstanceRequest
impl Message for RollbackInstanceRequest
Source§impl PartialEq for RollbackInstanceRequest
impl PartialEq for RollbackInstanceRequest
impl StructuralPartialEq for RollbackInstanceRequest
Auto Trait Implementations§
impl Freeze for RollbackInstanceRequest
impl RefUnwindSafe for RollbackInstanceRequest
impl Send for RollbackInstanceRequest
impl Sync for RollbackInstanceRequest
impl Unpin for RollbackInstanceRequest
impl UnwindSafe for RollbackInstanceRequest
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