pub struct ProfileContext {
pub alias: String,
pub home: PathBuf,
pub model: String,
pub endpoint: String,
pub hooks: Vec<String>,
pub mcp_servers: Vec<String>,
pub hooks_config: Option<Value>,
pub proxy_url: Option<String>,
}Expand description
Profile context for scripts.
Fields§
§alias: String§home: PathBuf§model: String§endpoint: String§hooks: Vec<String>§mcp_servers: Vec<String>§hooks_config: Option<Value>Full hooks configuration as JSON (for Claude Code hooks).
proxy_url: Option<String>Proxy URL if proxy is enabled for this profile.
Trait Implementations§
Source§impl Clone for ProfileContext
impl Clone for ProfileContext
Source§fn clone(&self) -> ProfileContext
fn clone(&self) -> ProfileContext
Returns a duplicate of the value. Read more
1.0.0 · 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 ProfileContext
impl Debug for ProfileContext
Source§impl<'de> Deserialize<'de> for ProfileContext
impl<'de> Deserialize<'de> for ProfileContext
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
Auto Trait Implementations§
impl Freeze for ProfileContext
impl RefUnwindSafe for ProfileContext
impl Send for ProfileContext
impl Sync for ProfileContext
impl Unpin for ProfileContext
impl UnwindSafe for ProfileContext
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