pub struct ToolExecDef {
pub kind: Option<String>,
pub cmd: String,
pub timeout_ms: Option<i32>,
pub allow_network: Option<bool>,
pub allow_fs: Option<bool>,
pub allow_subprocess: Option<bool>,
pub credential_delivery: Option<String>,
pub oauth_providers: Vec<String>,
pub oauth_required_scopes: HashMap<String, Vec<String>>,
}Fields§
§kind: Option<String>§cmd: String§timeout_ms: Option<i32>§allow_network: Option<bool>§allow_fs: Option<bool>§allow_subprocess: Option<bool>§credential_delivery: Option<String>How OAuth credentials should be delivered to the tool.
oauth_providers: Vec<String>OAuth provider IDs whose tokens should be injected server-side.
oauth_required_scopes: HashMap<String, Vec<String>>Required OAuth scopes per provider, enforced at tool-execution time. Example: oauth_required_scopes.github = [“repo”, “workflow”]
Trait Implementations§
Source§impl Clone for ToolExecDef
impl Clone for ToolExecDef
Source§fn clone(&self) -> ToolExecDef
fn clone(&self) -> ToolExecDef
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 ToolExecDef
impl Debug for ToolExecDef
Source§impl<'de> Deserialize<'de> for ToolExecDef
impl<'de> Deserialize<'de> for ToolExecDef
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 ToolExecDef
impl RefUnwindSafe for ToolExecDef
impl Send for ToolExecDef
impl Sync for ToolExecDef
impl Unpin for ToolExecDef
impl UnwindSafe for ToolExecDef
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