Struct ChangeMarkProps
pub struct ChangeMarkProps {Show 13 fields
pub of: Option<ResourceId>,
pub by: Option<Person>,
pub by_all: Vec<Person>,
pub said: Option<String>,
pub noun: Option<String>,
pub noun_one: Option<String>,
pub run: Option<String>,
pub kind: Option<String>,
pub count: i64,
pub window: bool,
pub more: bool,
pub activate: Event,
pub content: Vec<Box<dyn Widget>>,
}Expand description
What someone else changed of a resource that the person looking has not seen yet: who, in
which task run, and whether they made, changed or removed it. The host fills all but of
from the resource’s versions; activating it shows what they did.
Fields§
§of: Option<ResourceId>The resource whose changes it marks.
by: Option<Person>Who made the newest change the person has not seen.
by_all: Vec<Person>Everyone who made one of the changes the person has not seen, in the order they changed it (its newest change last), each once.
said: Option<String>What the newest change did, in the words history says it with (“moved this to”).
noun: Option<String>What one item of it is called, plural (“tasks”): the noun a window’s count names.
noun_one: Option<String>What one item of it is called, singular (“task”): one change names one, so the count and the noun agree in number.
run: Option<String>The task run it was part of, as its task is titled.
kind: Option<String>What they did: created, changed or removed.
count: i64How many changes of it the person has not seen.
window: boolIt marks a window, in its header: it says how many changes and by whom.
more: boolThe window’s document holds more resources than the mark counted: what it says is a lower bound, and says so.
activate: EventActivated: show what they did, at the run that did it.
content: Vec<Box<dyn Widget>>What a window’s mark opens: the views of its catch-up (Since you looked), placed by whoever placed the mark. A mark of a row has none, and shows who changed it alone.
Implementations§
§impl ChangeMarkProps
impl ChangeMarkProps
pub fn again(&self) -> ChangeMarkProps
pub fn again(&self) -> ChangeMarkProps
The same mark again, its activation shared: a row is built anew each time it scrolls into view.
pub fn row(self) -> Option<RowMark>
pub fn row(self) -> Option<RowMark>
The mark as a row carries it: the face of who changed it and their colour under the
row, and one line under the row’s title saying what they did; who and the run said on
hover and to assistive technology. None while nothing is unseen.
pub fn face(self, key: &str) -> Option<Chip>
pub fn face(self, key: &str) -> Option<Chip>
The mark beside a row that is no list row (a view of its own): the face of who changed it alone, as a round pill that keeps the row’s height; who and the run on hover.
Trait Implementations§
§impl Component for ChangeMarkProps
impl Component for ChangeMarkProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<ChangeMarkProps, Error>
fn from_source(source: &mut dyn Source) -> Result<ChangeMarkProps, Error>
source gives. Read more§impl Default for ChangeMarkProps
impl Default for ChangeMarkProps
§fn default() -> ChangeMarkProps
fn default() -> ChangeMarkProps
Auto Trait Implementations§
impl Freeze for ChangeMarkProps
impl !RefUnwindSafe for ChangeMarkProps
impl !Send for ChangeMarkProps
impl !Sync for ChangeMarkProps
impl Unpin for ChangeMarkProps
impl UnsafeUnpin for ChangeMarkProps
impl !UnwindSafe for ChangeMarkProps
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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