Skip to main content

Pending

Struct Pending 

Source
pub struct Pending {
Show 14 fields pub ref_id: String, pub kind: CommentKind, pub key: String, pub newest: String, pub author: String, pub association: String, pub gate_author: String, pub gate_association: String, pub body: String, pub file: Option<String>, pub line: Option<i64>, pub hunk: String, pub url: String, pub at: String,
}
Expand description

One thing somebody said that spar has not answered.

Fields§

§ref_id: String

The handle spar prints in the prompt and matches an answer back on: “c1”, “c2”.

§kind: CommentKind§key: String

What the watermark is keyed on.

§newest: String

The newest message in it that spar did not write, as an opaque id. The watermark’s value, so a thread that has moved is read again.

§author: String§association: String§gate_author: String

The least privileged author in the thread, and their association.

The trust gate reads these rather than the newest message’s. A thread is one conversation and the whole of it is what the agents are handed, so a stranger’s request followed by a maintainer’s “will look” would otherwise read as a maintainer’s thread and the stranger’s change could be implemented. Waiting for anybody with write access to say anything at all is not a bar.

§gate_association: String§body: String

Every message in the thread, oldest first, each attributed. A request refined three replies down is not the opening sentence, and judging it on the opening sentence answers a question nobody asked.

§file: Option<String>§line: Option<i64>§hunk: String

The diff hunk GitHub shows above an inline thread.

§url: String§at: String

Implementations§

Source§

impl Pending

Source

pub fn is_thread(&self) -> bool

Source

pub fn reply_root(&self) -> Option<i64>

Where a reply to this goes, when it goes into a thread.

Source

pub fn thread_id(&self) -> &str

Source

pub fn can_resolve(&self) -> bool

Source

pub fn located(&self) -> String

Where it is, for a log line.

Trait Implementations§

Source§

impl Clone for Pending

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Pending

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.