pub struct SearchResultPayload {
pub query: String,
pub items: Vec<SearchResultWire>,
}Expand description
Result payload returned by the "search" JSON-RPC method.
Fields§
§query: String§items: Vec<SearchResultWire>Trait Implementations§
Source§impl Clone for SearchResultPayload
impl Clone for SearchResultPayload
Source§impl Debug for SearchResultPayload
impl Debug for SearchResultPayload
Source§impl<'de> Deserialize<'de> for SearchResultPayload
impl<'de> Deserialize<'de> for SearchResultPayload
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
impl Eq for SearchResultPayload
Source§impl PartialEq for SearchResultPayload
impl PartialEq for SearchResultPayload
Source§impl Serialize for SearchResultPayload
impl Serialize for SearchResultPayload
impl StructuralPartialEq for SearchResultPayload
Auto Trait Implementations§
impl Forget for SearchResultPayload
impl Freeze for SearchResultPayload
impl Move for SearchResultPayload
impl RefUnwindSafe for SearchResultPayload
impl Send for SearchResultPayloadwhere
RawVecInner: Send,
impl Sync for SearchResultPayloadwhere
RawVecInner: Sync,
impl Unpin for SearchResultPayload
impl UnsafeUnpin for SearchResultPayloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SearchResultWire>: UnsafeUnpin,
impl UnwindSafe for SearchResultPayloadwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more