#[non_exhaustive]pub struct CustomOutput {
pub custom_output: Option<CustomOutput>,
/* private fields */
}Available on crate features
evaluation-service or gen-ai-tuning-service only.Expand description
Spec for custom output.
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.custom_output: Option<CustomOutput>Custom output.
Implementations§
Source§impl CustomOutput
impl CustomOutput
pub fn new() -> Self
Sourcepub fn set_custom_output<T: Into<Option<CustomOutput>>>(self, v: T) -> Self
pub fn set_custom_output<T: Into<Option<CustomOutput>>>(self, v: T) -> Self
Sets the value of custom_output.
Note that all the setters affecting custom_output are mutually
exclusive.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RawOutput;
let x = CustomOutput::new().set_custom_output(Some(
google_cloud_aiplatform_v1::model::custom_output::CustomOutput::RawOutputs(RawOutput::default().into())));Sourcepub fn raw_outputs(&self) -> Option<&Box<RawOutput>>
pub fn raw_outputs(&self) -> Option<&Box<RawOutput>>
The value of custom_output
if it holds a RawOutputs, None if the field is not set or
holds a different branch.
Sourcepub fn set_raw_outputs<T: Into<Box<RawOutput>>>(self, v: T) -> Self
pub fn set_raw_outputs<T: Into<Box<RawOutput>>>(self, v: T) -> Self
Sets the value of custom_output
to hold a RawOutputs.
Note that all the setters affecting custom_output are
mutually exclusive.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RawOutput;
let x = CustomOutput::new().set_raw_outputs(RawOutput::default()/* use setters */);
assert!(x.raw_outputs().is_some());Trait Implementations§
Source§impl Clone for CustomOutput
impl Clone for CustomOutput
Source§fn clone(&self) -> CustomOutput
fn clone(&self) -> CustomOutput
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 CustomOutput
impl Debug for CustomOutput
Source§impl Default for CustomOutput
impl Default for CustomOutput
Source§fn default() -> CustomOutput
fn default() -> CustomOutput
Returns the “default value” for a type. Read more
Source§impl Message for CustomOutput
impl Message for CustomOutput
Source§impl PartialEq for CustomOutput
impl PartialEq for CustomOutput
impl StructuralPartialEq for CustomOutput
Auto Trait Implementations§
impl Freeze for CustomOutput
impl RefUnwindSafe for CustomOutput
impl Send for CustomOutput
impl Sync for CustomOutput
impl Unpin for CustomOutput
impl UnsafeUnpin for CustomOutput
impl UnwindSafe for CustomOutput
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