pub struct JiraConfig {
pub enabled: bool,
pub base_url: String,
pub email: String,
pub api_token: String,
pub allowed_actions: Vec<String>,
pub timeout_secs: u64,
}Expand description
Jira integration configuration ([jira]).
When enabled = true, registers the jira tool which can get tickets,
search with JQL, and add comments. Requires base_url and api_token
(or the JIRA_API_TOKEN env var).
§Defaults
enabled:falseallowed_actions:["get_ticket"]— read-only by default. Add"search_tickets"or"comment_ticket"to unlock them.timeout_secs:30
§Auth
Jira Cloud uses HTTP Basic auth: email + api_token.
api_token is stored encrypted at rest; set it here or via JIRA_API_TOKEN.
Fields§
§enabled: boolEnable the jira tool. Default: false.
base_url: StringAtlassian instance base URL, e.g. https://yourco.atlassian.net.
email: StringJira account email used for Basic auth.
api_token: StringJira API token. Encrypted at rest. Falls back to JIRA_API_TOKEN env var.
allowed_actions: Vec<String>Actions the agent is permitted to call.
Valid values: "get_ticket", "search_tickets", "comment_ticket".
Defaults to ["get_ticket"] (read-only).
timeout_secs: u64Request timeout in seconds. Default: 30.
Trait Implementations§
Source§impl Clone for JiraConfig
impl Clone for JiraConfig
Source§fn clone(&self) -> JiraConfig
fn clone(&self) -> JiraConfig
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 JiraConfig
impl Debug for JiraConfig
Source§impl Default for JiraConfig
impl Default for JiraConfig
Source§impl<'de> Deserialize<'de> for JiraConfig
impl<'de> Deserialize<'de> for JiraConfig
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
Source§impl JsonSchema for JiraConfig
impl JsonSchema for JiraConfig
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 Freeze for JiraConfig
impl RefUnwindSafe for JiraConfig
impl Send for JiraConfig
impl Sync for JiraConfig
impl Unpin for JiraConfig
impl UnsafeUnpin for JiraConfig
impl UnwindSafe for JiraConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more