#[non_exhaustive]pub struct TargetProject {
pub name: String,
pub project: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
/* private fields */
}Expand description
TargetProject message represents a target Compute Engine project for a migration or a clone.
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: StringOutput only. The name of the target project.
project: StringRequired. The target project ID (number) or project name.
description: StringThe target project’s description.
create_time: Option<Timestamp>Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).
update_time: Option<Timestamp>Output only. The last time the target project resource was updated.
Implementations§
Source§impl TargetProject
impl TargetProject
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_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = TargetProject::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = TargetProject::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = TargetProject::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = TargetProject::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = TargetProject::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = TargetProject::new().set_or_clear_update_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for TargetProject
impl Clone for TargetProject
Source§fn clone(&self) -> TargetProject
fn clone(&self) -> TargetProject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetProject
impl Debug for TargetProject
Source§impl Default for TargetProject
impl Default for TargetProject
Source§fn default() -> TargetProject
fn default() -> TargetProject
Returns the “default value” for a type. Read more
Source§impl Message for TargetProject
impl Message for TargetProject
Source§impl PartialEq for TargetProject
impl PartialEq for TargetProject
Source§fn eq(&self, other: &TargetProject) -> bool
fn eq(&self, other: &TargetProject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TargetProject
Auto Trait Implementations§
impl Freeze for TargetProject
impl RefUnwindSafe for TargetProject
impl Send for TargetProject
impl Sync for TargetProject
impl Unpin for TargetProject
impl UnsafeUnpin for TargetProject
impl UnwindSafe for TargetProject
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