pub struct ApprovalRequestParams {
pub checkpoint_id: String,
pub audience: String,
pub prompt: String,
pub allowed_decisions: Vec<String>,
pub expiration: String,
}Fields§
§checkpoint_id: StringThe immutable deterministic-local checkpoint to which this approval is bound.
audience: StringHuman audience label; this is metadata and grants no execution authority.
prompt: StringApproval prompt. It is stored only as a digest and is never returned by approval reads.
allowed_decisions: Vec<String>Non-empty subset of approve and reject.
expiration: StringRFC3339 expiration timestamp.
Trait Implementations§
Source§impl Debug for ApprovalRequestParams
impl Debug for ApprovalRequestParams
Source§impl<'de> Deserialize<'de> for ApprovalRequestParams
impl<'de> Deserialize<'de> for ApprovalRequestParams
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 JsonSchema for ApprovalRequestParams
impl JsonSchema for ApprovalRequestParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ApprovalRequestParams
impl RefUnwindSafe for ApprovalRequestParams
impl Send for ApprovalRequestParams
impl Sync for ApprovalRequestParams
impl Unpin for ApprovalRequestParams
impl UnsafeUnpin for ApprovalRequestParams
impl UnwindSafe for ApprovalRequestParams
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