pub struct QueuedProposal {
pub kind: ProposalKind,
pub stable_identity: String,
pub root: String,
pub facts: Vec<String>,
pub title: String,
pub goal: Option<String>,
pub acceptance: String,
pub role: Option<String>,
pub session_ref: Option<String>,
pub local_number: Option<u64>,
pub ref_keyed: bool,
pub signed: Option<SignedPerson>,
}Expand description
One queued proposal (the outbox payload).
Fields§
§kind: ProposalKind§stable_identity: Stringstable_identity of the project (as knowledge drafts name it).
root: String§facts: Vec<String>The two contradicting facts; empty for an agent task.
title: String§goal: Option<String>§acceptance: String§role: Option<String>§session_ref: Option<String>Opaque session reference. propose_agent_task keys it under the
local receipts key (session_ref::uploaded_ses_ref) for a session id
and for the fixed labels callers pass in its place alike (such as
emspace-import), and queues nothing when that key is unavailable.
Only constant labels that name no session stay unsalted: the
cloud-link ref of a brought local task and, when absent, the
cloud-task-proposals ref of a contradiction proposal.
local_number: Option<u64>The local task this proposal brings into the vault on link
(cloud link --bring-local); part of the key, so two local tasks
with the same title stay two vault tasks.
ref_keyed: boolsession_ref is keyed already. Absent on a proposal queued before
refs were keyed: its stored ref (an unsalted digest; the queue never
kept the session id) is re-keyed before it is sent.
signed: Option<SignedPerson>A person’s proposal signed by LeanCTX Code’s task-propose key
(rc4-67): sent with origin person only with this.
Implementations§
Source§impl QueuedProposal
impl QueuedProposal
Sourcepub fn idempotency_key(&self) -> String
pub fn idempotency_key(&self) -> String
One proposal is one task, however often it is resent or requeued: the key covers the project, the kind, the facts, (for an agent task) the title and, for a brought local task, its local number.
Trait Implementations§
Source§impl Clone for QueuedProposal
impl Clone for QueuedProposal
Source§impl Debug for QueuedProposal
impl Debug for QueuedProposal
Source§impl<'de> Deserialize<'de> for QueuedProposal
impl<'de> Deserialize<'de> for QueuedProposal
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 QueuedProposal
Source§impl PartialEq for QueuedProposal
impl PartialEq for QueuedProposal
Source§impl Serialize for QueuedProposal
impl Serialize for QueuedProposal
impl StructuralPartialEq for QueuedProposal
Auto Trait Implementations§
impl Forget for QueuedProposal
impl Freeze for QueuedProposal
impl Move for QueuedProposal
impl RefUnwindSafe for QueuedProposal
impl Send for QueuedProposalwhere
RawVecInner: Send,
impl Sync for QueuedProposalwhere
RawVecInner: Sync,
impl Unpin for QueuedProposal
impl UnsafeUnpin for QueuedProposalwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for QueuedProposalwhere
RawVecInner: UnwindSafe,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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