Struct rust_bert::pipelines::generation_utils::GeneratedTextOutput
source · pub struct GeneratedTextOutput {
pub text: String,
pub score: Option<f64>,
}
Expand description
Generated text output
Contains generated text and an optional log-likelihood score for the generated sequence
Fields§
§text: String
§score: Option<f64>
Trait Implementations§
source§impl Clone for GeneratedTextOutput
impl Clone for GeneratedTextOutput
source§fn clone(&self) -> GeneratedTextOutput
fn clone(&self) -> GeneratedTextOutput
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for GeneratedTextOutput
impl Send for GeneratedTextOutput
impl Sync for GeneratedTextOutput
impl Unpin for GeneratedTextOutput
impl UnwindSafe for GeneratedTextOutput
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