pub struct SideChatSelection {
pub text: String,
pub response_part_id: Option<String>,
}Expand description
Immutable selected-text snapshot captured when a side chat is created.
The host records this exact text when it accepts createChat; later changes
to the source chat do not alter it.
Fields§
§text: StringExact selected-text snapshot captured at createChat acceptance.
MUST be non-empty.
response_part_id: Option<String>Optional provenance for the response part that contained {@link text} when the host took the snapshot.
Advisory only: this is not a live range or offset and MUST NOT be used to
recompute text.
Trait Implementations§
Source§impl Clone for SideChatSelection
impl Clone for SideChatSelection
Source§fn clone(&self) -> SideChatSelection
fn clone(&self) -> SideChatSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SideChatSelection
impl Debug for SideChatSelection
Source§impl<'de> Deserialize<'de> for SideChatSelection
impl<'de> Deserialize<'de> for SideChatSelection
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 SideChatSelection
impl PartialEq for SideChatSelection
Source§impl Serialize for SideChatSelection
impl Serialize for SideChatSelection
impl StructuralPartialEq for SideChatSelection
Auto Trait Implementations§
impl Freeze for SideChatSelection
impl RefUnwindSafe for SideChatSelection
impl Send for SideChatSelection
impl Sync for SideChatSelection
impl Unpin for SideChatSelection
impl UnsafeUnpin for SideChatSelection
impl UnwindSafe for SideChatSelection
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