pub struct JiraConfig {
pub login: String,
pub api_url: String,
pub completed_statuses: Vec<String>,
}Expand description
Jira connection settings; passwords are never stored here.
Fields§
§login: StringUsername (email for Atlassian Cloud accounts).
api_url: StringInstance root URL, without the /rest/api/ path.
completed_statuses: Vec<String>Deprecated: previously used in status in (...) for completed-issue search.
Kept for config compatibility. Discovery now filters by resolved date only,
because non-existent status names (e.g. English “Done” on a Russian Jira)
make the whole JQL fail.
Implementations§
Source§impl JiraConfig
impl JiraConfig
Sourcepub fn module() -> ConfigModule
pub fn module() -> ConfigModule
Module metadata for the setup wizard.
Sourcepub fn init(config: &Option<Self>) -> Result<Self>
pub fn init(config: &Option<Self>) -> Result<Self>
Interactive setup; existing values become the prompt defaults.
let existing_config = Some(JiraConfig {
login: "olduser".to_string(),
api_url: "https://old-jira.com".to_string(),
completed_statuses: Vec::new(),
});
let new_config = JiraConfig::init(&existing_config)?;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<'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
Auto 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