Struct jira_query::JiraInstance
source · pub struct JiraInstance {
pub host: String,
pub auth: Auth,
pub pagination: Pagination,
/* private fields */
}
Expand description
Configuration and credentials to access a Jira instance.
Fields§
§host: String
§auth: Auth
§pagination: Pagination
Implementations§
source§impl JiraInstance
impl JiraInstance
sourcepub fn at(host: String) -> Result<Self, JiraQueryError>
pub fn at(host: String) -> Result<Self, JiraQueryError>
Create a new BzInstance
struct using a host URL, with default values
for all options.
sourcepub fn authenticate(self, auth: Auth) -> Self
pub fn authenticate(self, auth: Auth) -> Self
Set the authentication method of this JiraInstance
.
sourcepub const fn paginate(self, pagination: Pagination) -> Self
pub const fn paginate(self, pagination: Pagination) -> Self
Set the pagination method of this JiraInstance
.
sourcepub async fn issue(&self, key: &str) -> Result<Issue, JiraQueryError>
pub async fn issue(&self, key: &str) -> Result<Issue, JiraQueryError>
Access a single issue by its key.