#[non_exhaustive]pub struct ProviderRequest {
pub model: String,
pub state: Value,
pub questions: IndexMap<String, Question>,
pub images: Option<Vec<Image>>,
}Expand description
The provider request for one item: {model, state, questions, images?}.
images is clef only; TypeSafe takes text only.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: StringThe provider’s own model value, one of models.
state: ValueA string, or structured data (an object or array). The provider silently truncates a long state.
questions: IndexMap<String, Question>§images: Option<Vec<Image>>Implementations§
Trait Implementations§
Source§impl Clone for ProviderRequest
impl Clone for ProviderRequest
Source§impl Debug for ProviderRequest
impl Debug for ProviderRequest
Source§impl<'de> Deserialize<'de> for ProviderRequest
impl<'de> Deserialize<'de> for ProviderRequest
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 ProviderRequest
impl PartialEq for ProviderRequest
Source§impl Serialize for ProviderRequest
impl Serialize for ProviderRequest
impl StructuralPartialEq for ProviderRequest
Auto Trait Implementations§
impl Freeze for ProviderRequest
impl RefUnwindSafe for ProviderRequest
impl Send for ProviderRequest
impl Sync for ProviderRequest
impl Unpin for ProviderRequest
impl UnsafeUnpin for ProviderRequest
impl UnwindSafe for ProviderRequest
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