pub struct RemoteRepository {
pub id: String,
pub name: String,
pub selected: bool,
}Expand description
Every list answer here carries truncated for the same reason
ServiceLogsResponse does: a phone showing thirty runs must be able to say
“the most recent thirty” rather than implying the repository has thirty.
The repositories a phone may ask about.
An id and a name, and nothing else. No path, no remote URL, no branch — the rule this protocol is built on is that a phone names what to look at and never where, and a filesystem path is the purest form of “where”.
Fields§
§id: StringWhat a request passes back as repository. The daemon’s own name for
it; the dispatcher refuses any id it did not report here.
name: String§selected: boolThe one the machine currently has selected — what an absent repository
resolves to, so a phone can show which it is defaulting to.
Trait Implementations§
Source§impl Clone for RemoteRepository
impl Clone for RemoteRepository
Source§fn clone(&self) -> RemoteRepository
fn clone(&self) -> RemoteRepository
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 RemoteRepository
impl Debug for RemoteRepository
Source§impl<'de> Deserialize<'de> for RemoteRepository
impl<'de> Deserialize<'de> for RemoteRepository
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
impl Eq for RemoteRepository
Source§impl PartialEq for RemoteRepository
impl PartialEq for RemoteRepository
Source§impl Serialize for RemoteRepository
impl Serialize for RemoteRepository
impl StructuralPartialEq for RemoteRepository
Auto Trait Implementations§
impl Freeze for RemoteRepository
impl RefUnwindSafe for RemoteRepository
impl Send for RemoteRepository
impl Sync for RemoteRepository
impl Unpin for RemoteRepository
impl UnsafeUnpin for RemoteRepository
impl UnwindSafe for RemoteRepository
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.