#[non_exhaustive]pub struct SessionModelChangedParams {
pub session_id: String,
pub view_cursor: String,
pub source_range: SourceRange,
pub model_id: String,
pub provider_id: Option<String>,
pub source: ModelChangeSource,
}Expand description
session/modelChanged params: a durable model-selection record landed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe owning session.
view_cursor: StringOpaque, strictly monotonic view cursor.
source_range: SourceRangeThe durable records this event folded from.
model_id: StringThe selected model.
provider_id: Option<String>The selected provider; null when the selection names none.
source: ModelChangeSourceWhat drove the selection.
Trait Implementations§
Source§impl Clone for SessionModelChangedParams
impl Clone for SessionModelChangedParams
Source§impl Debug for SessionModelChangedParams
impl Debug for SessionModelChangedParams
Source§impl<'de> Deserialize<'de> for SessionModelChangedParams
impl<'de> Deserialize<'de> for SessionModelChangedParams
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 SessionModelChangedParams
impl StructuralPartialEq for SessionModelChangedParams
Auto Trait Implementations§
impl Forget for SessionModelChangedParams
impl Freeze for SessionModelChangedParams
impl Move for SessionModelChangedParams
impl RefUnwindSafe for SessionModelChangedParams
impl Send for SessionModelChangedParams
impl Sync for SessionModelChangedParams
impl Unpin for SessionModelChangedParams
impl UnsafeUnpin for SessionModelChangedParams
impl UnwindSafe for SessionModelChangedParams
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