pub struct ComponentRef {
pub name: String,
}Expand description
Component reference used in create/update issue payloads (issue #197).
We serialise by name ({ "name": "..." }) to line up with the
Jira schema enricher, which enumerates component names in tool
schemas (JiraComponent.name). Jira accepts either {id} or {name}
in fields.components, so name-based references work across Cloud +
Self-Hosted without forcing callers to resolve ids first.
This is addressed in Copilot review on PR #205.
Fields§
§name: StringTrait Implementations§
Source§impl Clone for ComponentRef
impl Clone for ComponentRef
Source§fn clone(&self) -> ComponentRef
fn clone(&self) -> ComponentRef
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 ComponentRef
impl Debug for ComponentRef
Source§impl<'de> Deserialize<'de> for ComponentRef
impl<'de> Deserialize<'de> for ComponentRef
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 ComponentRef
impl RefUnwindSafe for ComponentRef
impl Send for ComponentRef
impl Sync for ComponentRef
impl Unpin for ComponentRef
impl UnsafeUnpin for ComponentRef
impl UnwindSafe for ComponentRef
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