Skip to main content

PendingIntake

Struct PendingIntake 

Source
pub struct PendingIntake {
    pub id: String,
    pub created_unix: u64,
    pub coordinate: String,
    pub sensitivity: Sensitivity,
    pub environment: String,
    pub origin: Origin,
    pub requesting_process: Option<String>,
    pub description: Option<Untrusted>,
    pub project: Option<String>,
}
Expand description

A pending agent-initiated secret-creation request, persisted for the human-summoned fulfillment surface (CLI kovra intake list, the menu-bar app).

Carries only the authoritative address/metadata the agent named — never a value (I11/I12/I14). There is no value field by construction; the value is supplied out-of-band at fulfillment and goes straight to the vault.

Fields§

§id: String

The operator-typable intake id (<unix>-<pid>-<n>, same scheme as the approval broker).

§created_unix: u64

Seconds since the Unix epoch when the intake was created.

§coordinate: String

The coordinate the value will be sealed under (an address, not a value).

§sensitivity: Sensitivity

Sensitivity the secret will be born with (a prod secret is born high, I5 — enforced at the seal, recorded here for the fulfillment prompt).

§environment: String

Environment (prod is highlighted by the renderer).

§origin: Origin

Who initiated the intake — weighs into the human’s decision.

§requesting_process: Option<String>

The requesting process / caller identity, a trusted, observed fact set by the FFI/CLI boundary (never from requester text). Carries no value.

§description: Option<Untrusted>

Optional requester free-text, segregated as untrusted (I16) — the agent’s “why”, never the authoritative line.

§project: Option<String>

Optional destination project vault the value should be sealed into (None ⇒ the global vault). An address hint, never a value — it just routes which vault the fulfillment seals into and preselects the project in the native fulfill window. #[serde(default)] keeps intakes written before this field deserializable.

Implementations§

Source§

impl PendingIntake

Source

pub fn new( coordinate: impl Into<String>, sensitivity: Sensitivity, environment: impl Into<String>, origin: Origin, ) -> Self

Build an intake request from the authoritative fields. id/created_unix are placeholders until IntakeBroker::create stamps them.

Source

pub fn with_requesting_process(self, s: impl Into<String>) -> Self

Attach the trusted, observed requesting-process identity (mirrors crate::confirm::ConfirmRequest::with_requesting_process).

Source

pub fn with_description(self, text: impl Into<String>) -> Self

Attach segregated, untrusted requester free-text.

Source

pub fn with_project(self, project: Option<String>) -> Self

Attach the destination project vault (None ⇒ global). Routes which vault the fulfillment seals into and preselects it in the fulfill window.

Trait Implementations§

Source§

impl Clone for PendingIntake

Source§

fn clone(&self) -> PendingIntake

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 PendingIntake

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PendingIntake

Source§

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 Eq for PendingIntake

Source§

impl PartialEq for PendingIntake

Source§

fn eq(&self, other: &PendingIntake) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PendingIntake

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PendingIntake

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> AnyEq for T
where T: Any + PartialEq,

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

fn as_any(&self) -> &(dyn Any + 'static)

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V