pub struct ReasonBody {
pub observation: EndpointSpec,
pub depth: u32,
pub confidence_threshold: f32,
pub max_inferences: u32,
pub budget_wall_time_ms: u32,
}Expand description
POST /v1/reason body.
Fields§
§observation: EndpointSpec§depth: u32§confidence_threshold: f32§max_inferences: u32§budget_wall_time_ms: u32Implementations§
Source§impl ReasonBody
impl ReasonBody
Sourcepub fn to_request(&self) -> Result<ReasonRequest, String>
pub fn to_request(&self) -> Result<ReasonRequest, String>
Build the wire request (mints a fresh request_id).
Trait Implementations§
Source§impl Debug for ReasonBody
impl Debug for ReasonBody
Source§impl<'de> Deserialize<'de> for ReasonBody
impl<'de> Deserialize<'de> for ReasonBody
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 ReasonBody
impl RefUnwindSafe for ReasonBody
impl Send for ReasonBody
impl Sync for ReasonBody
impl Unpin for ReasonBody
impl UnsafeUnpin for ReasonBody
impl UnwindSafe for ReasonBody
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