pub struct IssueRepository(/* private fields */);Expand description
A GitHub repository as owner/name, checked so it can be placed in API
paths and URLs as it is.
Implementations§
Source§impl IssueRepository
impl IssueRepository
Sourcepub fn parse(value: &str) -> Option<Self>
pub fn parse(value: &str) -> Option<Self>
owner/name, trimmed. The owner is letters, digits and inner
hyphens; the name is letters, digits, -, _ and ., but not .
or ...
pub fn as_str(&self) -> &str
Sourcepub fn issues_url(&self) -> String
pub fn issues_url(&self) -> String
The repository’s issue list.
Sourcepub fn new_issue_url(&self) -> String
pub fn new_issue_url(&self) -> String
GitHub’s blank new-issue editor for this repository.
Sourcepub fn is_created_issue_url(&self, url: &str) -> bool
pub fn is_created_issue_url(&self, url: &str) -> bool
Only a positive issue number in this repository, over HTTPS, is safe to open.
Trait Implementations§
Source§impl Clone for IssueRepository
impl Clone for IssueRepository
Source§impl Debug for IssueRepository
impl Debug for IssueRepository
impl Eq for IssueRepository
Source§impl PartialEq for IssueRepository
impl PartialEq for IssueRepository
impl StructuralPartialEq for IssueRepository
Auto Trait Implementations§
impl Forget for IssueRepository
impl Freeze for IssueRepository
impl Move for IssueRepository
impl RefUnwindSafe for IssueRepository
impl Send for IssueRepository
impl Sync for IssueRepository
impl Unpin for IssueRepository
impl UnsafeUnpin for IssueRepository
impl UnwindSafe for IssueRepository
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.