pub struct Selection {
pub detail: Detail,
pub sessions: Vec<SessionToken>,
pub labels: BTreeMap<String, String>,
}Expand description
Which of the preserved work in scope a report is asked to answer with.
Both halves are anded with each other and with the Scope: a row is answered
with when its branch is one the named sessions hold or held and the labels of
the session that answers for it carry every pair asked for. Empty asks nothing,
which is what every read before there was a selection asked — so Default is
the whole report.
A session token no record on this host names is refused by name rather than answered with an empty report: “nothing of that session is left to publish” and “there is no such session” are different answers to act on. A label pair nothing carries is the first of those, and answers empty.
Fields§
§detail: DetailDetail to compute; default is the complete report.
sessions: Vec<SessionToken>The sessions whose branches are asked about, by token.
labels: BTreeMap<String, String>The pairs every answered row’s labels must carry.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Selection
impl<'de> Deserialize<'de> for Selection
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>,
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.