pub(crate) struct Note {
target_pane: String,
agent: String,
kind: Kind,
url: Option<String>,
target: Option<String>,
detail: Option<String>,
how: Option<How>,
}Expand description
One entry being described; Note::record adds it. Built by the
handlers, one line each.
Fields§
§target_pane: String§agent: String§kind: Kind§url: Option<String>§target: Option<String>§detail: Option<String>§how: Option<How>Implementations§
Source§impl Note
impl Note
Sourcepub(crate) fn act(pane: &str, req: &UiBrowserActRequest) -> Note
pub(crate) fn act(pane: &str, req: &UiBrowserActRequest) -> Note
An act request: click, fill, select or check, on its ref. A fill’s text is never kept; a select’s option and a check’s state are.
Sourcepub(crate) fn secret_fill(self, answer: &Value) -> Self
pub(crate) fn secret_fill(self, answer: &Value) -> Self
A fill into a password, code, card, bank or ID field: the log says which kind and that the agent gave the value, never the value or its length.
pub(crate) fn url(self, url: &str) -> Self
pub(crate) fn target(self, target: &str) -> Self
pub(crate) fn detail(self, detail: &str) -> Self
pub(crate) fn how(self, how: How) -> Self
Sourcepub(crate) fn asked(self, ask: &Value) -> Self
pub(crate) fn asked(self, ask: &Value) -> Self
The committing click a needs_approval describes: its label (from
Click "…") and the page it is on, keeping the ref as detail.
fn entry(&self, how: How, window_url: Option<String>) -> Entry
Sourcepub(crate) fn record(self, state: &AppState)
pub(crate) fn record(self, state: &AppState)
Add the entry (as Allowed unless Note::how said otherwise) to
the pane’s log and show it in the header. Only a pane an agent drives
has a log: an agent’s own pane, which these routes also reach, has none.
fn record_as(self, state: &AppState, how: How)
Sourcefn audit_for_a_session(
&self,
state: &AppState,
pane: &str,
how: &How,
window_url: Option<&str>,
)
fn audit_for_a_session( &self, state: &AppState, pane: &str, how: &How, window_url: Option<&str>, )
A background session has no window the person watches, so what an agent does in it also goes to the Audit: the agent, the kind of step, how it went and the site (never a typed value, a label or a reason).
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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