pub struct RemoteProject {
pub id: String,
pub name: Option<String>,
}Expand description
A project reference a remote reported on one issue.
Fields§
§id: StringThe remote’s project identity. It is the only thing an import matches on (C-002): an id is allocated once and never changes, so a remote that renames a project still names the same one.
name: Option<String>The remote’s display name for the project, when it sent one.
Carried for the diagnostics — a reader recognises “the remote calls it Platform hardening” — and never matched on. The local display name stays the registry’s (C-002), so a remote rename cannot change it, and it is the only remote text in a diagnostic, which is why that diagnostic is scrubbed.
Trait Implementations§
Source§impl Clone for RemoteProject
impl Clone for RemoteProject
Source§impl Debug for RemoteProject
impl Debug for RemoteProject
impl Eq for RemoteProject
Source§impl PartialEq for RemoteProject
impl PartialEq for RemoteProject
impl StructuralPartialEq for RemoteProject
Auto Trait Implementations§
impl Freeze for RemoteProject
impl RefUnwindSafe for RemoteProject
impl Send for RemoteProject
impl Sync for RemoteProject
impl Unpin for RemoteProject
impl UnsafeUnpin for RemoteProject
impl UnwindSafe for RemoteProject
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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