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§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 moreAuto Trait Implementations§
impl Forget for SessionStartPayload
impl Freeze for SessionStartPayload
impl Move for SessionStartPayload
impl RefUnwindSafe for SessionStartPayload
impl Send for SessionStartPayload
impl Sync for SessionStartPayload
impl Unpin for SessionStartPayload
impl UnsafeUnpin for SessionStartPayload
impl UnwindSafe for SessionStartPayload
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