pub struct ClientResponse {
pub success: bool,
pub data: Option<Value>,
pub result: Option<String>,
pub plan_id: Option<String>,
pub request_id: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub error: Option<String>,
pub blocked: bool,
pub block_reason: Option<String>,
pub policy_info: Option<PolicyEvaluationInfo>,
pub budget_info: Option<BudgetInfo>,
}Fields§
§success: bool§data: Option<Value>§result: Option<String>§plan_id: Option<String>§request_id: Option<String>§metadata: Option<HashMap<String, Value>>§error: Option<String>§blocked: bool§block_reason: Option<String>§policy_info: Option<PolicyEvaluationInfo>§budget_info: Option<BudgetInfo>Implementations§
Source§impl ClientResponse
impl ClientResponse
pub fn fail_open(error: AxonFlowError) -> Self
Trait Implementations§
Source§impl Clone for ClientResponse
impl Clone for ClientResponse
Source§fn clone(&self) -> ClientResponse
fn clone(&self) -> ClientResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientResponse
impl Debug for ClientResponse
Source§impl<'de> Deserialize<'de> for ClientResponse
impl<'de> Deserialize<'de> for ClientResponse
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
Auto Trait Implementations§
impl Freeze for ClientResponse
impl RefUnwindSafe for ClientResponse
impl Send for ClientResponse
impl Sync for ClientResponse
impl Unpin for ClientResponse
impl UnsafeUnpin for ClientResponse
impl UnwindSafe for ClientResponse
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