pub struct CompleteResultCompletion {
pub has_more: Option<bool>,
pub total: Option<i64>,
pub values: Vec<String>,
}
Expand description
CompleteResultCompletion
JSON schema
{
"type": "object",
"required": [
"values"
],
"properties": {
"hasMore": {
"description": "Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.",
"type": "boolean"
},
"total": {
"description": "The total number of completion options available. This can exceed the number of values actually sent in the response.",
"type": "integer"
},
"values": {
"description": "An array of completion values. Must not exceed 100 items.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
Fields§
§has_more: Option<bool>
Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
total: Option<i64>
The total number of completion options available. This can exceed the number of values actually sent in the response.
values: Vec<String>
An array of completion values. Must not exceed 100 items.
Implementations§
Source§impl CompleteResultCompletion
impl CompleteResultCompletion
pub const MAX_VALUES: usize = 100usize
Trait Implementations§
Source§impl Clone for CompleteResultCompletion
impl Clone for CompleteResultCompletion
Source§fn clone(&self) -> CompleteResultCompletion
fn clone(&self) -> CompleteResultCompletion
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 moreSource§impl Debug for CompleteResultCompletion
impl Debug for CompleteResultCompletion
Source§impl Default for CompleteResultCompletion
impl Default for CompleteResultCompletion
Source§fn default() -> CompleteResultCompletion
fn default() -> CompleteResultCompletion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompleteResultCompletion
impl<'de> Deserialize<'de> for CompleteResultCompletion
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 From<&[&str]> for CompleteResultCompletion
impl From<&[&str]> for CompleteResultCompletion
Source§impl From<&CompleteResultCompletion> for CompleteResult
impl From<&CompleteResultCompletion> for CompleteResult
Source§fn from(value: &CompleteResultCompletion) -> Self
fn from(value: &CompleteResultCompletion) -> Self
Converts to this type from the input type.
Source§impl From<&CompleteResultCompletion> for CompleteResultCompletion
impl From<&CompleteResultCompletion> for CompleteResultCompletion
Source§fn from(value: &CompleteResultCompletion) -> Self
fn from(value: &CompleteResultCompletion) -> Self
Converts to this type from the input type.
Source§impl From<&CompleteResultCompletion> for ServerResult
impl From<&CompleteResultCompletion> for ServerResult
Source§fn from(value: &CompleteResultCompletion) -> Self
fn from(value: &CompleteResultCompletion) -> Self
Converts to this type from the input type.
Source§impl From<CompleteResultCompletion> for CompleteResult
impl From<CompleteResultCompletion> for CompleteResult
Source§fn from(completion: CompleteResultCompletion) -> Self
fn from(completion: CompleteResultCompletion) -> Self
Converts to this type from the input type.
Source§impl From<CompleteResultCompletion> for ServerResult
impl From<CompleteResultCompletion> for ServerResult
Source§fn from(value: CompleteResultCompletion) -> Self
fn from(value: CompleteResultCompletion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CompleteResultCompletion
impl PartialEq for CompleteResultCompletion
Source§impl Serialize for CompleteResultCompletion
impl Serialize for CompleteResultCompletion
impl StructuralPartialEq for CompleteResultCompletion
Auto Trait Implementations§
impl Freeze for CompleteResultCompletion
impl RefUnwindSafe for CompleteResultCompletion
impl Send for CompleteResultCompletion
impl Sync for CompleteResultCompletion
impl Unpin for CompleteResultCompletion
impl UnwindSafe for CompleteResultCompletion
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