pub struct ItemLink {
pub body: String,
pub text: String,
pub start: usize,
pub end: usize,
pub text_start: usize,
pub text_end: usize,
pub item_id: u32,
}Expand description
One item link extracted from a decoded chat message.
Fields§
§body: StringExact link body between the wire delimiters.
text: StringHuman-readable item label.
start: usizeInclusive/exclusive offsets in the original wire bytes, including delimiters.
end: usizeExclusive byte offset after the link’s closing wire delimiter.
text_start: usizeInclusive/exclusive UTF-8 byte offsets of the label in Message::text.
text_end: usizeExclusive UTF-8 byte offset of the label in Message::text.
item_id: u32Numeric item identifier decoded for the selected client generation.
Trait Implementations§
Source§impl Serialize for ItemLink
impl Serialize for ItemLink
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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for ItemLink
impl Freeze for ItemLink
impl RefUnwindSafe for ItemLink
impl Send for ItemLink
impl Sync for ItemLink
impl Unpin for ItemLink
impl UnsafeUnpin for ItemLink
impl UnwindSafe for ItemLink
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