pub enum IssueRef {
Id(IssueId),
Identifier(String),
}Expand description
Reference to an issue where the API accepts a UUID or a human
identifier such as "ENG-123": issue getters, issueUpdate’s id, and
issueRelationCreate inputs.
There is deliberately no From<&str>: construct human identifiers
explicitly with IssueRef::identifier so UUID-vs-"ENG-123" intent
stays visible at call sites.
Variants§
Implementations§
Source§impl IssueRef
impl IssueRef
Sourcepub fn identifier(identifier: impl Into<String>) -> Self
pub fn identifier(identifier: impl Into<String>) -> Self
Creates a reference from a human identifier such as "ENG-123".
Sourcepub fn api_string(&self) -> &str
pub fn api_string(&self) -> &str
The string that gets sent to the API.
Trait Implementations§
impl Eq for IssueRef
impl StructuralPartialEq for IssueRef
Auto Trait Implementations§
impl Freeze for IssueRef
impl RefUnwindSafe for IssueRef
impl Send for IssueRef
impl Sync for IssueRef
impl Unpin for IssueRef
impl UnsafeUnpin for IssueRef
impl UnwindSafe for IssueRef
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