pub struct ListPromptsResult {
pub meta: Option<Meta>,
pub next_cursor: Option<Cursor>,
pub prompts: Vec<Prompt>,
}Fields§
§meta: Option<Meta>§next_cursor: Option<Cursor>§prompts: Vec<Prompt>Implementations§
Source§impl ListPromptsResult
impl ListPromptsResult
pub fn with_all_items(items: Vec<Prompt>) -> Self
Trait Implementations§
Source§impl Clone for ListPromptsResult
impl Clone for ListPromptsResult
Source§fn clone(&self) -> ListPromptsResult
fn clone(&self) -> ListPromptsResult
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 ListPromptsResult
impl Debug for ListPromptsResult
Source§impl Default for ListPromptsResult
impl Default for ListPromptsResult
Source§fn default() -> ListPromptsResult
fn default() -> ListPromptsResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListPromptsResult
impl<'de> Deserialize<'de> for ListPromptsResult
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<ListPromptsResult> for ServerResult
impl From<ListPromptsResult> for ServerResult
Source§fn from(value: ListPromptsResult) -> Self
fn from(value: ListPromptsResult) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ListPromptsResult
impl JsonSchema for ListPromptsResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ListPromptsResult
impl PartialEq for ListPromptsResult
Source§impl Serialize for ListPromptsResult
impl Serialize for ListPromptsResult
impl StructuralPartialEq for ListPromptsResult
Auto Trait Implementations§
impl Freeze for ListPromptsResult
impl RefUnwindSafe for ListPromptsResult
impl Send for ListPromptsResult
impl Sync for ListPromptsResult
impl Unpin for ListPromptsResult
impl UnsafeUnpin for ListPromptsResult
impl UnwindSafe for ListPromptsResult
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