#[non_exhaustive]pub struct ModelIdRefusal {
pub model_id: String,
pub reason: String,
}Expand description
modelIdRefusal on session/resume: the host refused this resume’s
modelId, so the session opened on its recorded model.
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.model_id: StringThe modelId the resume carried, verbatim.
reason: StringThe host’s reason, display text a client shows as is.
Trait Implementations§
Source§impl Clone for ModelIdRefusal
impl Clone for ModelIdRefusal
Source§impl Debug for ModelIdRefusal
impl Debug for ModelIdRefusal
Source§impl<'de> Deserialize<'de> for ModelIdRefusal
impl<'de> Deserialize<'de> for ModelIdRefusal
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 ModelIdRefusal
Source§impl PartialEq for ModelIdRefusal
impl PartialEq for ModelIdRefusal
Source§impl Serialize for ModelIdRefusal
impl Serialize for ModelIdRefusal
impl StructuralPartialEq for ModelIdRefusal
Auto Trait Implementations§
impl Forget for ModelIdRefusal
impl Freeze for ModelIdRefusal
impl Move for ModelIdRefusal
impl RefUnwindSafe for ModelIdRefusal
impl Send for ModelIdRefusal
impl Sync for ModelIdRefusal
impl Unpin for ModelIdRefusal
impl UnsafeUnpin for ModelIdRefusal
impl UnwindSafe for ModelIdRefusal
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