#[non_exhaustive]pub struct JiraQueries {
pub projects: Vec<String>,
pub custom_queries: Vec<String>,
pub email: String,
pub server_uri: String,
pub api_key_config: Option<ApiKeyConfig>,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
JiraQueries contains the Jira queries and corresponding authentication.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.projects: Vec<String>A list of Jira projects to import in their entirety.
custom_queries: Vec<String>A list of custom Jira queries to import. For information about JQL (Jira Query Language), see https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/
email: StringRequired. The Jira email address.
server_uri: StringRequired. The Jira server URI.
api_key_config: Option<ApiKeyConfig>Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Jira API key. See Manage API tokens for your Atlassian account.
Implementations§
Source§impl JiraQueries
impl JiraQueries
pub fn new() -> Self
Sourcepub fn set_projects<T, V>(self, v: T) -> Self
pub fn set_projects<T, V>(self, v: T) -> Self
Sourcepub fn set_custom_queries<T, V>(self, v: T) -> Self
pub fn set_custom_queries<T, V>(self, v: T) -> Self
Sets the value of custom_queries.
§Example
ⓘ
let x = JiraQueries::new().set_custom_queries(["a", "b", "c"]);Sourcepub fn set_server_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_server_uri<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_api_key_config<T>(self, v: T) -> Selfwhere
T: Into<ApiKeyConfig>,
pub fn set_api_key_config<T>(self, v: T) -> Selfwhere
T: Into<ApiKeyConfig>,
Sets the value of api_key_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::api_auth::ApiKeyConfig;
let x = JiraQueries::new().set_api_key_config(ApiKeyConfig::default()/* use setters */);Sourcepub fn set_or_clear_api_key_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApiKeyConfig>,
pub fn set_or_clear_api_key_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApiKeyConfig>,
Sets or clears the value of api_key_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::api_auth::ApiKeyConfig;
let x = JiraQueries::new().set_or_clear_api_key_config(Some(ApiKeyConfig::default()/* use setters */));
let x = JiraQueries::new().set_or_clear_api_key_config(None::<ApiKeyConfig>);Trait Implementations§
Source§impl Clone for JiraQueries
impl Clone for JiraQueries
Source§fn clone(&self) -> JiraQueries
fn clone(&self) -> JiraQueries
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 JiraQueries
impl Debug for JiraQueries
Source§impl Default for JiraQueries
impl Default for JiraQueries
Source§fn default() -> JiraQueries
fn default() -> JiraQueries
Returns the “default value” for a type. Read more
Source§impl Message for JiraQueries
impl Message for JiraQueries
Source§impl PartialEq for JiraQueries
impl PartialEq for JiraQueries
impl StructuralPartialEq for JiraQueries
Auto Trait Implementations§
impl Freeze for JiraQueries
impl RefUnwindSafe for JiraQueries
impl Send for JiraQueries
impl Sync for JiraQueries
impl Unpin for JiraQueries
impl UnwindSafe for JiraQueries
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