pub struct Prediction {
pub type: Option<Type>,
pub content: Option<String>,
}Expand description
Prediction : Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Fields§
§type: Option<Type>§content: Option<String>Implementations§
Source§impl Prediction
impl Prediction
Sourcepub fn new() -> Prediction
pub fn new() -> Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Trait Implementations§
Source§impl Clone for Prediction
impl Clone for Prediction
Source§fn clone(&self) -> Prediction
fn clone(&self) -> Prediction
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 Prediction
impl Debug for Prediction
Source§impl Default for Prediction
impl Default for Prediction
Source§fn default() -> Prediction
fn default() -> Prediction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Prediction
impl<'de> Deserialize<'de> for Prediction
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
Source§impl PartialEq for Prediction
impl PartialEq for Prediction
Source§impl Serialize for Prediction
impl Serialize for Prediction
impl StructuralPartialEq for Prediction
Auto Trait Implementations§
impl Freeze for Prediction
impl RefUnwindSafe for Prediction
impl Send for Prediction
impl Sync for Prediction
impl Unpin for Prediction
impl UnsafeUnpin for Prediction
impl UnwindSafe for Prediction
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