pub struct Who {
pub name: String,
pub via: String,
pub client: Option<String>,
pub basis: String,
}Expand description
Who decided, through what, and how speccoder knows the name.
Fields§
§name: StringThe person (see who).
via: StringThe interface (Via::as_str): terminal, web, acp, …
client: Option<String>The editor’s name, over the Agent Client Protocol.
basis: Stringasserted (typed at a local terminal or the CLI) or connected
(reported by a client over its connection). speccoder authenticates
nobody, so never authenticated.
Implementations§
Source§impl Who
impl Who
Sourcepub fn local(via: Via) -> Self
pub fn local(via: Via) -> Self
The local person, deciding through via: the name is the person’s
own (asserted).
Sourcepub fn local_in(dir: &Path, via: Via) -> Self
pub fn local_in(dir: &Path, via: Via) -> Self
Who::local, named as git names the person in dir (the project).
Sourcepub fn connected(client: &str) -> Self
pub fn connected(client: &str) -> Self
The local person, deciding in the editor client over its
connection (acp): the name is the connection’s (connected).
Sourcepub fn view(&self) -> OperatorView
pub fn view(&self) -> OperatorView
The operator as reports show it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Who
impl<'de> Deserialize<'de> for Who
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 Who
impl StructuralPartialEq for Who
Auto Trait Implementations§
impl Freeze for Who
impl RefUnwindSafe for Who
impl Send for Who
impl Sync for Who
impl Unpin for Who
impl UnsafeUnpin for Who
impl UnwindSafe for Who
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
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
Compare self to
key and return true if they are equal.