pub struct SessionStartPayload {Show 13 fields
pub scene: String,
pub permission_mode: String,
pub model: String,
pub max_tokens: u32,
pub thinking_mode: bool,
pub sandbox_enabled: bool,
pub resume_from: Option<String>,
pub auth_modes: Vec<String>,
pub mcp_server_count: usize,
pub plugin_count: usize,
pub skill_count: usize,
pub output_format: String,
pub started_at_ms: i64,
}Expand description
Session 开始事件的载荷。
Fields§
§scene: String§permission_mode: String§model: String§max_tokens: u32§thinking_mode: bool§sandbox_enabled: bool§resume_from: Option<String>§auth_modes: Vec<String>§mcp_server_count: usize§plugin_count: usize§skill_count: usize§output_format: String§started_at_ms: i64Trait Implementations§
Source§impl Clone for SessionStartPayload
impl Clone for SessionStartPayload
Source§fn clone(&self) -> SessionStartPayload
fn clone(&self) -> SessionStartPayload
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 SessionStartPayload
impl Debug for SessionStartPayload
Source§impl JsonSchema for SessionStartPayload
impl JsonSchema for SessionStartPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for SessionStartPayload
impl Serialize for SessionStartPayload
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 SessionStartPayload
impl Freeze for SessionStartPayload
impl Move for SessionStartPayload
impl RefUnwindSafe for SessionStartPayload
impl Send for SessionStartPayloadwhere
RawVecInner: Send,
impl Sync for SessionStartPayloadwhere
RawVecInner: Sync,
impl Unpin for SessionStartPayload
impl UnsafeUnpin for SessionStartPayloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SessionStartPayloadwhere
RawVecInner: UnwindSafe,
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