pub struct GenerateContentResponsePromptFeedback {
pub block_reason: Option<BlockedReason>,
pub block_reason_message: Option<String>,
pub safety_ratings: Option<Vec<SafetyRating>>,
}Fields§
§block_reason: Option<BlockedReason>§block_reason_message: Option<String>§safety_ratings: Option<Vec<SafetyRating>>Implementations§
Source§impl GenerateContentResponsePromptFeedback
impl GenerateContentResponsePromptFeedback
Sourcepub fn block_reason(self, value: impl Into<BlockedReason>) -> Self
pub fn block_reason(self, value: impl Into<BlockedReason>) -> Self
Sets the block_reason field of this struct.
Sourcepub fn block_reason_message(self, value: impl Into<String>) -> Self
pub fn block_reason_message(self, value: impl Into<String>) -> Self
Sets the block_reason_message field of this struct.
Sourcepub fn safety_ratings(self, value: impl Into<Vec<SafetyRating>>) -> Self
pub fn safety_ratings(self, value: impl Into<Vec<SafetyRating>>) -> Self
Sets the safety_ratings field of this struct.
Trait Implementations§
Source§impl Clone for GenerateContentResponsePromptFeedback
impl Clone for GenerateContentResponsePromptFeedback
Source§fn clone(&self) -> GenerateContentResponsePromptFeedback
fn clone(&self) -> GenerateContentResponsePromptFeedback
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 Default for GenerateContentResponsePromptFeedback
impl Default for GenerateContentResponsePromptFeedback
Source§fn default() -> GenerateContentResponsePromptFeedback
fn default() -> GenerateContentResponsePromptFeedback
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerateContentResponsePromptFeedback
impl<'de> Deserialize<'de> for GenerateContentResponsePromptFeedback
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GenerateContentResponsePromptFeedback
impl RefUnwindSafe for GenerateContentResponsePromptFeedback
impl Send for GenerateContentResponsePromptFeedback
impl Sync for GenerateContentResponsePromptFeedback
impl Unpin for GenerateContentResponsePromptFeedback
impl UnwindSafe for GenerateContentResponsePromptFeedback
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