pub struct ModelRequirements {
pub min_ram_gb: f64,
pub min_vram_gb: Option<f64>,
pub gpu_required: bool,
pub cpu_cores: u32,
pub disk_space_gb: f64,
pub supported_platforms: Vec<String>,
}
Expand description
模型系统要求
Fields§
§min_ram_gb: f64
§min_vram_gb: Option<f64>
§gpu_required: bool
§cpu_cores: u32
§disk_space_gb: f64
§supported_platforms: Vec<String>
Trait Implementations§
Source§impl Clone for ModelRequirements
impl Clone for ModelRequirements
Source§fn clone(&self) -> ModelRequirements
fn clone(&self) -> ModelRequirements
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 ModelRequirements
impl Debug for ModelRequirements
Source§impl<'de> Deserialize<'de> for ModelRequirements
impl<'de> Deserialize<'de> for ModelRequirements
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 ModelRequirements
impl RefUnwindSafe for ModelRequirements
impl Send for ModelRequirements
impl Sync for ModelRequirements
impl Unpin for ModelRequirements
impl UnwindSafe for ModelRequirements
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