pub struct QueuedDraft {
pub stable_identity: String,
pub root: String,
pub draft: DraftProposalV1,
pub ref_keyed: bool,
}Expand description
The payload of a knowledge outbox item.
Fields§
§stable_identity: Stringstable_identity of the project (never leaves the machine as such).
root: StringLocal checkout the draft came from, to resolve the project later.
draft: DraftProposalV1§ref_keyed: boolThe draft’s session_ref is keyed under the local receipts key
(crate::session_ref::uploaded_ses_ref). Absent on a draft queued
before refs were keyed: its unsalted digest is re-keyed before it is
sent (QueuedDraft::rekey_legacy_ref).
Implementations§
Source§impl QueuedDraft
impl QueuedDraft
Sourcepub fn rekey_legacy_ref(
&mut self,
cloud_data: &Path,
) -> Result<bool, CloudError>
pub fn rekey_legacy_ref( &mut self, cloud_data: &Path, ) -> Result<bool, CloudError>
Key the session_ref of a draft queued before refs were keyed (the
queue holds only its unsalted digest, never the session id), so no
guessable digest is sent. Returns whether it changed; an error (no
local key) keeps the draft queued.
Trait Implementations§
Source§impl Clone for QueuedDraft
impl Clone for QueuedDraft
Source§impl Debug for QueuedDraft
impl Debug for QueuedDraft
Source§impl<'de> Deserialize<'de> for QueuedDraft
impl<'de> Deserialize<'de> for QueuedDraft
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
Source§impl PartialEq for QueuedDraft
impl PartialEq for QueuedDraft
Source§impl Serialize for QueuedDraft
impl Serialize for QueuedDraft
impl StructuralPartialEq for QueuedDraft
Auto Trait Implementations§
impl Forget for QueuedDraft
impl Freeze for QueuedDraftwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PatchOpV1>: Freeze,
impl Move for QueuedDraft
impl RefUnwindSafe for QueuedDraft
impl Send for QueuedDraftwhere
RawVecInner: Send,
impl Sync for QueuedDraftwhere
RawVecInner: Sync,
impl Unpin for QueuedDraft
impl UnsafeUnpin for QueuedDraftwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PatchOpV1>: UnsafeUnpin,
impl UnwindSafe for QueuedDraftwhere
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
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<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> ⓘ
Converts
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> ⓘ
Converts
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