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