pub struct SlackSearchMatch {
pub ts: String,
pub text: String,
pub conversation_id: String,
pub conversation_name: Option<String>,
pub username: Option<String>,
pub user: Option<String>,
pub thread_ts: Option<String>,
pub files: Vec<SlackFile>,
}Expand description
One hit from search.messages. conversation_name is absent on a DM,
which has no name rather than an empty one. user is the author’s id,
which the delivered block carries - username is only a handle. A
file-share with no text is a real hit, so the files ride along for
delivery and slack__attachment.
Fields§
§ts: String§text: String§conversation_id: String§conversation_name: Option<String>§username: Option<String>§user: Option<String>§thread_ts: Option<String>§files: Vec<SlackFile>Trait Implementations§
Source§impl Clone for SlackSearchMatch
impl Clone for SlackSearchMatch
Source§impl Debug for SlackSearchMatch
impl Debug for SlackSearchMatch
Source§impl<'de> Deserialize<'de> for SlackSearchMatch
impl<'de> Deserialize<'de> for SlackSearchMatch
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 SlackSearchMatch
Source§impl PartialEq for SlackSearchMatch
impl PartialEq for SlackSearchMatch
impl StructuralPartialEq for SlackSearchMatch
Auto Trait Implementations§
impl Freeze for SlackSearchMatch
impl RefUnwindSafe for SlackSearchMatch
impl Send for SlackSearchMatch
impl Sync for SlackSearchMatch
impl Unpin for SlackSearchMatch
impl UnsafeUnpin for SlackSearchMatch
impl UnwindSafe for SlackSearchMatch
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.