#[repr(C)]pub struct vllm_completion {
pub text: *mut c_char,
pub finish_reason: *const c_char,
pub prompt_tokens: i32,
pub completion_tokens: i32,
}Fields§
§text: *mut c_char§finish_reason: *const c_char§prompt_tokens: i32§completion_tokens: i32Trait Implementations§
Source§impl Clone for vllm_completion
impl Clone for vllm_completion
Source§fn clone(&self) -> vllm_completion
fn clone(&self) -> vllm_completion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for vllm_completion
Auto Trait Implementations§
impl !Send for vllm_completion
impl !Sync for vllm_completion
impl Freeze for vllm_completion
impl RefUnwindSafe for vllm_completion
impl Unpin for vllm_completion
impl UnsafeUnpin for vllm_completion
impl UnwindSafe for vllm_completion
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