pub struct ParametersData {
pub after: Option<i64>,
pub before: Option<i64>,
pub convo_id: Option<String>,
pub max_interleaved_system_messages: Option<LimitedU16<1000u16>>,
pub message_id: String,
}namespace-chatbsky only.Fields§
§after: Option<i64>Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by maxInterleavedSystemMessages. If there are no user messages after the target, up to maxInterleavedSystemMessages system messages immediately following the target are returned instead.
before: Option<i64>Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by maxInterleavedSystemMessages. If there are no user messages before the target, up to maxInterleavedSystemMessages system messages immediately preceding the target are returned instead.
convo_id: Option<String>Conversation that the message is from. NOTE: this field will eventually be required.
max_interleaved_system_messages: Option<LimitedU16<1000u16>>Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept.
message_id: StringTrait Implementations§
Source§impl Clone for ParametersData
impl Clone for ParametersData
Source§impl Debug for ParametersData
impl Debug for ParametersData
Source§impl<'de> Deserialize<'de> for ParametersData
impl<'de> Deserialize<'de> for ParametersData
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>,
impl Eq for ParametersData
Source§impl PartialEq for ParametersData
impl PartialEq for ParametersData
Source§impl Serialize for ParametersData
impl Serialize for ParametersData
impl StructuralPartialEq for ParametersData
Auto Trait Implementations§
impl Freeze for ParametersData
impl RefUnwindSafe for ParametersData
impl Send for ParametersData
impl Sync for ParametersData
impl Unpin for ParametersData
impl UnsafeUnpin for ParametersData
impl UnwindSafe for ParametersData
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.