#[non_exhaustive]pub struct ItemResult {
pub index: u64,
pub answers: Option<IndexMap<String, Answer>>,
pub error: Option<ItemError>,
pub usage: Option<Usage>,
}Expand description
One item’s outcome: answers if it succeeded, error if it failed,
never both.
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.index: u64The item’s position in the request.
answers: Option<IndexMap<String, Answer>>§error: Option<ItemError>§usage: Option<Usage>What the provider reported for this item; absent when it reported nothing.
Implementations§
Trait Implementations§
Source§impl Clone for ItemResult
impl Clone for ItemResult
Source§impl Debug for ItemResult
impl Debug for ItemResult
Source§impl<'de> Deserialize<'de> for ItemResult
impl<'de> Deserialize<'de> for ItemResult
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 ItemResult
impl PartialEq for ItemResult
Source§impl Serialize for ItemResult
impl Serialize for ItemResult
impl StructuralPartialEq for ItemResult
Auto Trait Implementations§
impl Freeze for ItemResult
impl RefUnwindSafe for ItemResult
impl Send for ItemResult
impl Sync for ItemResult
impl Unpin for ItemResult
impl UnsafeUnpin for ItemResult
impl UnwindSafe for ItemResult
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