#[non_exhaustive]pub struct ExportDataRequest {
pub name: String,
pub request_id: String,
pub service_account: String,
pub source: Option<Source>,
pub destination: Option<Destination>,
/* private fields */
}Expand description
Export data from Managed Lustre to a Cloud Storage bucket.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The name of the Managed Lustre instance in the format
projects/{project}/locations/{location}/instances/{instance}.
request_id: StringOptional. UUID to identify requests.
service_account: StringOptional. User-specified service account used to perform the transfer. If unspecified, the Managed Lustre service agent is used.
source: Option<Source>The source of the data transfer.
destination: Option<Destination>The destination of the data transfer.
Implementations§
Source§impl ExportDataRequest
impl ExportDataRequest
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
§Example
let x = ExportDataRequest::new().set_service_account("example");Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
§Example
use google_cloud_lustre_v1::model::LustrePath;
let x = ExportDataRequest::new().set_source(Some(
google_cloud_lustre_v1::model::export_data_request::Source::LustrePath(LustrePath::default().into())));Sourcepub fn lustre_path(&self) -> Option<&Box<LustrePath>>
pub fn lustre_path(&self) -> Option<&Box<LustrePath>>
The value of source
if it holds a LustrePath, None if the field is not set or
holds a different branch.
Sourcepub fn set_lustre_path<T: Into<Box<LustrePath>>>(self, v: T) -> Self
pub fn set_lustre_path<T: Into<Box<LustrePath>>>(self, v: T) -> Self
Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
§Example
use google_cloud_lustre_v1::model::GcsPath;
let x = ExportDataRequest::new().set_destination(Some(
google_cloud_lustre_v1::model::export_data_request::Destination::GcsPath(GcsPath::default().into())));Sourcepub fn gcs_path(&self) -> Option<&Box<GcsPath>>
pub fn gcs_path(&self) -> Option<&Box<GcsPath>>
The value of destination
if it holds a GcsPath, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_path<T: Into<Box<GcsPath>>>(self, v: T) -> Self
pub fn set_gcs_path<T: Into<Box<GcsPath>>>(self, v: T) -> Self
Sets the value of destination
to hold a GcsPath.
Note that all the setters affecting destination are
mutually exclusive.
§Example
use google_cloud_lustre_v1::model::GcsPath;
let x = ExportDataRequest::new().set_gcs_path(GcsPath::default()/* use setters */);
assert!(x.gcs_path().is_some());Trait Implementations§
Source§impl Clone for ExportDataRequest
impl Clone for ExportDataRequest
Source§fn clone(&self) -> ExportDataRequest
fn clone(&self) -> ExportDataRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExportDataRequest
impl Debug for ExportDataRequest
Source§impl Default for ExportDataRequest
impl Default for ExportDataRequest
Source§fn default() -> ExportDataRequest
fn default() -> ExportDataRequest
Source§impl Message for ExportDataRequest
impl Message for ExportDataRequest
Source§impl PartialEq for ExportDataRequest
impl PartialEq for ExportDataRequest
impl StructuralPartialEq for ExportDataRequest
Auto Trait Implementations§
impl Freeze for ExportDataRequest
impl RefUnwindSafe for ExportDataRequest
impl Send for ExportDataRequest
impl Sync for ExportDataRequest
impl Unpin for ExportDataRequest
impl UnsafeUnpin for ExportDataRequest
impl UnwindSafe for ExportDataRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request