#[non_exhaustive]pub struct NotebookRuntimeOptions {
pub ai_platform_notebook_runtime_template: String,
pub execution_sink: Option<ExecutionSink>,
/* private fields */
}Expand description
Configures various aspects of Dataform notebook runtime.
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.ai_platform_notebook_runtime_template: StringOptional. The resource name of the [Colab runtime template] (https://cloud.google.com/colab/docs/runtimes), from which a runtime is created for notebook executions. If not specified, a runtime is created with Colab’s default specifications.
execution_sink: Option<ExecutionSink>The location to store the notebook execution result.
Implementations§
Source§impl NotebookRuntimeOptions
impl NotebookRuntimeOptions
Sourcepub fn set_ai_platform_notebook_runtime_template<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_ai_platform_notebook_runtime_template<T: Into<String>>( self, v: T, ) -> Self
Sets the value of ai_platform_notebook_runtime_template.
§Example
let x = NotebookRuntimeOptions::new().set_ai_platform_notebook_runtime_template("example");Sourcepub fn set_execution_sink<T: Into<Option<ExecutionSink>>>(self, v: T) -> Self
pub fn set_execution_sink<T: Into<Option<ExecutionSink>>>(self, v: T) -> Self
Sets the value of execution_sink.
Note that all the setters affecting execution_sink are mutually
exclusive.
§Example
use google_cloud_dataform_v1::model::notebook_runtime_options::ExecutionSink;
let x = NotebookRuntimeOptions::new().set_execution_sink(Some(ExecutionSink::GcsOutputBucket("example".to_string())));Sourcepub fn gcs_output_bucket(&self) -> Option<&String>
pub fn gcs_output_bucket(&self) -> Option<&String>
The value of execution_sink
if it holds a GcsOutputBucket, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_output_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_output_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of execution_sink
to hold a GcsOutputBucket.
Note that all the setters affecting execution_sink are
mutually exclusive.
§Example
let x = NotebookRuntimeOptions::new().set_gcs_output_bucket("example");
assert!(x.gcs_output_bucket().is_some());Trait Implementations§
Source§impl Clone for NotebookRuntimeOptions
impl Clone for NotebookRuntimeOptions
Source§fn clone(&self) -> NotebookRuntimeOptions
fn clone(&self) -> NotebookRuntimeOptions
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 NotebookRuntimeOptions
impl Debug for NotebookRuntimeOptions
Source§impl Default for NotebookRuntimeOptions
impl Default for NotebookRuntimeOptions
Source§fn default() -> NotebookRuntimeOptions
fn default() -> NotebookRuntimeOptions
Source§impl Message for NotebookRuntimeOptions
impl Message for NotebookRuntimeOptions
Source§impl PartialEq for NotebookRuntimeOptions
impl PartialEq for NotebookRuntimeOptions
impl StructuralPartialEq for NotebookRuntimeOptions
Auto Trait Implementations§
impl Freeze for NotebookRuntimeOptions
impl RefUnwindSafe for NotebookRuntimeOptions
impl Send for NotebookRuntimeOptions
impl Sync for NotebookRuntimeOptions
impl Unpin for NotebookRuntimeOptions
impl UnsafeUnpin for NotebookRuntimeOptions
impl UnwindSafe for NotebookRuntimeOptions
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