pub struct Reference {
pub number: i64,
pub origin: Origin,
}Expand description
An issue an item’s text already names.
Fields§
§number: i64§origin: OriginImplementations§
Source§impl Reference
impl Reference
Sourcepub fn local(&self, home: &str) -> Option<i64>
pub fn local(&self, home: &str) -> Option<i64>
The issue number, when the reference is one this repository can act on.
Another repository’s issue is not adoptable: taking the number out of it would point the item at whatever happens to carry that number here, which is the wrong link failure with no fuzziness to blame.
home is this repository’s own address, host and all, so that another
host serving the same owner/repo path is somebody else’s.
Trait Implementations§
impl Eq for Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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.