pub struct BackendCapability {Show 13 fields
pub name: String,
pub available: bool,
pub local: bool,
pub streaming: bool,
pub cancellation: bool,
pub structured_output: bool,
pub batching: bool,
pub max_batch_size: Option<usize>,
pub supported_batch_shapes: Vec<Vec<usize>>,
pub supported_formats: Vec<ModelFormat>,
pub accelerators: Vec<String>,
pub hardware: Option<String>,
pub notes: Vec<String>,
}Fields§
§name: String§available: bool§local: bool§streaming: bool§cancellation: bool§structured_output: bool§batching: bool§max_batch_size: Option<usize>§supported_batch_shapes: Vec<Vec<usize>>§supported_formats: Vec<ModelFormat>§accelerators: Vec<String>§hardware: Option<String>§notes: Vec<String>Implementations§
Source§impl BackendCapability
impl BackendCapability
pub fn from_parts( name: impl Into<String>, capabilities: BackendCapabilities, ) -> Self
Trait Implementations§
Source§impl Clone for BackendCapability
impl Clone for BackendCapability
Source§impl Debug for BackendCapability
impl Debug for BackendCapability
Source§impl<'de> Deserialize<'de> for BackendCapability
impl<'de> Deserialize<'de> for BackendCapability
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 BackendCapability
Source§impl PartialEq for BackendCapability
impl PartialEq for BackendCapability
Source§impl Serialize for BackendCapability
impl Serialize for BackendCapability
impl StructuralPartialEq for BackendCapability
Auto Trait Implementations§
impl Freeze for BackendCapability
impl RefUnwindSafe for BackendCapability
impl Send for BackendCapability
impl Sync for BackendCapability
impl Unpin for BackendCapability
impl UnsafeUnpin for BackendCapability
impl UnwindSafe for BackendCapability
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