pub struct SuggestionInvocationContext {
pub space: SpaceContext,
pub run_id: RunId,
pub operation_id: OperationId,
pub trigger: SuggestionTrigger,
pub deadline_unix_ms: u64,
pub traceparent: Option<String>,
}Fields§
§space: SpaceContext§run_id: RunId§operation_id: OperationId§trigger: SuggestionTrigger§deadline_unix_ms: u64§traceparent: Option<String>Implementations§
Source§impl SuggestionInvocationContext
impl SuggestionInvocationContext
Sourcepub fn validate(&self) -> Result<(), &'static str>
pub fn validate(&self) -> Result<(), &'static str>
Shape validation is not authentication, Space access, or an enabled-job check. The deployment must also bind the run to the backend currently responsible for this Space (Core or Lion).
pub fn payer(&self) -> Result<SuggestionPayer, &'static str>
Trait Implementations§
Source§impl Clone for SuggestionInvocationContext
impl Clone for SuggestionInvocationContext
Source§impl Debug for SuggestionInvocationContext
impl Debug for SuggestionInvocationContext
Source§impl<'de> Deserialize<'de> for SuggestionInvocationContext
impl<'de> Deserialize<'de> for SuggestionInvocationContext
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
impl Eq for SuggestionInvocationContext
Source§impl ExecutionContext for SuggestionInvocationContext
impl ExecutionContext for SuggestionInvocationContext
fn space(&self) -> &SpaceContext
fn run_id(&self) -> &RunId
fn operation_id(&self) -> &OperationId
fn with_operation_id(&self, operation_id: OperationId) -> Self
impl StructuralPartialEq for SuggestionInvocationContext
Auto Trait Implementations§
impl Forget for SuggestionInvocationContext
impl Freeze for SuggestionInvocationContext
impl Move for SuggestionInvocationContext
impl RefUnwindSafe for SuggestionInvocationContext
impl Send for SuggestionInvocationContextwhere
RawVecInner: Send,
impl Sync for SuggestionInvocationContextwhere
RawVecInner: Sync,
impl Unpin for SuggestionInvocationContext
impl UnsafeUnpin for SuggestionInvocationContext
impl UnwindSafe for SuggestionInvocationContextwhere
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
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§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
Compare self to
key and return true if they are equal.