#[non_exhaustive]pub struct RequestClass {
pub pool: RequestPool,
pub op: Option<&'static str>,
}Expand description
A classifier’s answer about one data request: the pool it waits in, and an optional label naming the operation, used only in the SDK’s logs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pool: RequestPool§op: Option<&'static str>A fixed name for the operation, such as "research.run". It is
'static so a label can never carry text taken from the request body.
Implementations§
Source§impl RequestClass
impl RequestClass
Sourcepub const fn default_pool() -> Self
pub const fn default_pool() -> Self
A request for the default pool, with no operation label.
Trait Implementations§
Source§impl Clone for RequestClass
impl Clone for RequestClass
impl Copy for RequestClass
Source§impl Debug for RequestClass
impl Debug for RequestClass
Source§impl Default for RequestClass
impl Default for RequestClass
impl Eq for RequestClass
Source§impl PartialEq for RequestClass
impl PartialEq for RequestClass
impl StructuralPartialEq for RequestClass
Auto Trait Implementations§
impl Forget for RequestClass
impl Freeze for RequestClass
impl Move for RequestClass
impl RefUnwindSafe for RequestClass
impl Send for RequestClass
impl Sync for RequestClass
impl Unpin for RequestClass
impl UnsafeUnpin for RequestClass
impl UnwindSafe for RequestClass
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