pub struct ProjectSessions {
pub entries: Vec<SessionListEntry>,
pub project_id: Option<i64>,
pub status: Option<HostProjectStatus>,
}Expand description
One project’s session list and status.
A host that names the project in project_id read the list and the
status together, so both describe that project even when the host
switches projects meanwhile. Without project_id, they were read one
after the other, and a switch between the two reads can pair one
project’s sessions with another project’s status.
Fields§
§entries: Vec<SessionListEntry>The project’s listed sessions in the host’s display order, with list stats when the host provides them.
project_id: Option<i64>Identifier of the project both the list and the status belong to;
None when the host does not say which project it is and did not
read them together.
status: Option<HostProjectStatus>The project’s branch, distance from upstream, and latest sync;
None when the host does not report project status.
Trait Implementations§
Source§impl Clone for ProjectSessions
impl Clone for ProjectSessions
Source§impl Debug for ProjectSessions
impl Debug for ProjectSessions
impl Eq for ProjectSessions
Source§impl PartialEq for ProjectSessions
impl PartialEq for ProjectSessions
impl StructuralPartialEq for ProjectSessions
Auto Trait Implementations§
impl Forget for ProjectSessions
impl Freeze for ProjectSessions
impl Move for ProjectSessions
impl RefUnwindSafe for ProjectSessions
impl Send for ProjectSessions
impl Sync for ProjectSessions
impl Unpin for ProjectSessions
impl UnsafeUnpin for ProjectSessions
impl UnwindSafe for ProjectSessions
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.