pub struct JiraCreateFrontmatter {
pub type: Option<String>,
pub key: String,
pub project: Option<String>,
pub summary: Option<String>,
pub issue_type: Option<String>,
pub labels: Vec<String>,
pub custom_fields: BTreeMap<String, Value>,
}Expand description
Lenient JIRA frontmatter used only by the jira create path.
Unlike JiraFrontmatter — which backs the strict read/write/edit
round-trip and requires instance and summary — every field here is
optional, so the create command can fall back to CLI flags for anything
the document omits (or accept a document with no frontmatter at all).
Unknown fields carried over from a round-tripped issue (instance,
status, assignee, …) are ignored: instance is irrelevant to create
because the client is built from auth config, not the document.
Fields§
§type: Option<String>Document type tag, when present. Used to reject confluence documents.
key: StringJIRA issue key (e.g., “PROJ-123”). The project is derived from it when no explicit project is given.
project: Option<String>Project key (e.g., “PROJ”).
summary: Option<String>Issue summary (title).
issue_type: Option<String>Issue type name (Bug, Story, Task, etc.).
labels: Vec<String>Labels applied to the issue.
custom_fields: BTreeMap<String, Value>Scalar custom field values keyed by human-readable field name.
Trait Implementations§
Source§impl Clone for JiraCreateFrontmatter
impl Clone for JiraCreateFrontmatter
Source§fn clone(&self) -> JiraCreateFrontmatter
fn clone(&self) -> JiraCreateFrontmatter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JiraCreateFrontmatter
impl Debug for JiraCreateFrontmatter
Source§impl Default for JiraCreateFrontmatter
impl Default for JiraCreateFrontmatter
Source§fn default() -> JiraCreateFrontmatter
fn default() -> JiraCreateFrontmatter
Source§impl<'de> Deserialize<'de> for JiraCreateFrontmatterwhere
JiraCreateFrontmatter: Default,
impl<'de> Deserialize<'de> for JiraCreateFrontmatterwhere
JiraCreateFrontmatter: Default,
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>,
Auto Trait Implementations§
impl Freeze for JiraCreateFrontmatter
impl RefUnwindSafe for JiraCreateFrontmatter
impl Send for JiraCreateFrontmatter
impl Sync for JiraCreateFrontmatter
impl Unpin for JiraCreateFrontmatter
impl UnsafeUnpin for JiraCreateFrontmatter
impl UnwindSafe for JiraCreateFrontmatter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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