#[non_exhaustive]pub struct ContainerImageRuntime {
pub image: String,
pub java_jars: Vec<String>,
pub python_packages: Vec<String>,
pub properties: HashMap<String, String>,
/* private fields */
}Expand description
Container Image Runtime Configuration used with Batch execution.
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.image: StringOptional. Container image to use.
java_jars: Vec<String>Optional. A list of Java JARS to add to the classpath. Valid input includes Cloud Storage URIs to Jar binaries. For example, gs://bucket-name/my/path/to/file.jar
python_packages: Vec<String>Optional. A list of python packages to be installed. Valid formats include Cloud Storage URI to a PIP installable library. For example, gs://bucket-name/my/path/to/lib.tar.gz
properties: HashMap<String, String>Optional. Override to common configuration of open source components
installed on the Dataproc cluster. The properties to set on daemon
config files. Property keys are specified in prefix:property format,
for example core:hadoop.tmp.dir. For more information, see Cluster
properties.
Implementations§
Source§impl ContainerImageRuntime
impl ContainerImageRuntime
Sourcepub fn set_java_jars<T, V>(self, v: T) -> Self
pub fn set_java_jars<T, V>(self, v: T) -> Self
Sourcepub fn set_python_packages<T, V>(self, v: T) -> Self
pub fn set_python_packages<T, V>(self, v: T) -> Self
Sets the value of python_packages.
§Example
let x = ContainerImageRuntime::new().set_python_packages(["a", "b", "c"]);Sourcepub fn set_properties<T, K, V>(self, v: T) -> Self
pub fn set_properties<T, K, V>(self, v: T) -> Self
Sets the value of properties.
§Example
let x = ContainerImageRuntime::new().set_properties([
("key0", "abc"),
("key1", "xyz"),
]);Trait Implementations§
Source§impl Clone for ContainerImageRuntime
impl Clone for ContainerImageRuntime
Source§fn clone(&self) -> ContainerImageRuntime
fn clone(&self) -> ContainerImageRuntime
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 ContainerImageRuntime
impl Debug for ContainerImageRuntime
Source§impl Default for ContainerImageRuntime
impl Default for ContainerImageRuntime
Source§fn default() -> ContainerImageRuntime
fn default() -> ContainerImageRuntime
Source§impl Message for ContainerImageRuntime
impl Message for ContainerImageRuntime
Source§impl PartialEq for ContainerImageRuntime
impl PartialEq for ContainerImageRuntime
impl StructuralPartialEq for ContainerImageRuntime
Auto Trait Implementations§
impl Freeze for ContainerImageRuntime
impl RefUnwindSafe for ContainerImageRuntime
impl Send for ContainerImageRuntime
impl Sync for ContainerImageRuntime
impl Unpin for ContainerImageRuntime
impl UnsafeUnpin for ContainerImageRuntime
impl UnwindSafe for ContainerImageRuntime
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