pub struct SearchChannelsResponse { /* private fields */ }Implementations§
Source§impl SearchChannelsResponse
impl SearchChannelsResponse
Sourcepub fn new() -> SearchChannelsResponse
pub fn new() -> SearchChannelsResponse
Constructs a new instance of the type.
Sourcepub fn all_expanded_locators(&self) -> &BTreeSet<Locator>
pub fn all_expanded_locators(&self) -> &BTreeSet<Locator>
All locators expanded from the request scope, independent of which channels exist within them. Useful for callers that need to know the complete locator topology (e.g. to render empty locators in a tree view) even when no matching channel was found in some of them or if the channel only exists in a subset of locators.
Sourcepub fn results(&self) -> &[ChannelEntry]
pub fn results(&self) -> &[ChannelEntry]
Channels matching the query, ordered by relevance from the underlying search: for fuzzy queries, exact matches first, then channels containing the query text, then other matches, with each tier ordered by descending similarity score; for substring queries, by earliest match position; for subsequence queries, exact matches first, then channels containing the query text ordered by earliest match position, then remaining subsequence matches. Ties are broken by natural (numeric-aware) channel name order.
Trait Implementations§
Source§impl Clone for SearchChannelsResponse
impl Clone for SearchChannelsResponse
Source§fn clone(&self) -> SearchChannelsResponse
fn clone(&self) -> SearchChannelsResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SearchChannelsResponse
impl Debug for SearchChannelsResponse
Source§impl<'de> Deserialize<'de> for SearchChannelsResponse
impl<'de> Deserialize<'de> for SearchChannelsResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchChannelsResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchChannelsResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for SearchChannelsResponse
Source§impl Hash for SearchChannelsResponse
impl Hash for SearchChannelsResponse
Source§impl Ord for SearchChannelsResponse
impl Ord for SearchChannelsResponse
Source§fn cmp(&self, other: &SearchChannelsResponse) -> Ordering
fn cmp(&self, other: &SearchChannelsResponse) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SearchChannelsResponse
impl PartialEq for SearchChannelsResponse
Source§impl PartialOrd for SearchChannelsResponse
impl PartialOrd for SearchChannelsResponse
Source§impl Serialize for SearchChannelsResponse
impl Serialize for SearchChannelsResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SearchChannelsResponse
Auto Trait Implementations§
impl Freeze for SearchChannelsResponse
impl RefUnwindSafe for SearchChannelsResponse
impl Send for SearchChannelsResponse
impl Sync for SearchChannelsResponse
impl Unpin for SearchChannelsResponse
impl UnsafeUnpin for SearchChannelsResponse
impl UnwindSafe for SearchChannelsResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request