pub struct ContentGenerationApiParaphrasePost {
pub text: String,
pub creativity_index: Option<f64>,
pub tag: Option<String>,
}Expand description
Request for content_generation/paraphrase/live.
Fields§
§text: StringText to paraphrase (1–500 tokens).
creativity_index: Option<f64>Randomness of token selection, 0–1 (default 0.8).
tag: Option<String>User-defined task identifier (max 255 characters).
Implementations§
Source§impl ContentGenerationApiParaphrasePost
impl ContentGenerationApiParaphrasePost
Sourcepub fn new(text: &str) -> ContentGenerationApiParaphrasePost
pub fn new(text: &str) -> ContentGenerationApiParaphrasePost
Creates a request that paraphrases the given text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContentGenerationApiParaphrasePost
impl<'de> Deserialize<'de> for ContentGenerationApiParaphrasePost
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 ContentGenerationApiParaphrasePost
impl RefUnwindSafe for ContentGenerationApiParaphrasePost
impl Send for ContentGenerationApiParaphrasePost
impl Sync for ContentGenerationApiParaphrasePost
impl Unpin for ContentGenerationApiParaphrasePost
impl UnsafeUnpin for ContentGenerationApiParaphrasePost
impl UnwindSafe for ContentGenerationApiParaphrasePost
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