pub struct CreateModelMetaRequestBodyJson {
pub version: String,
pub name: String,
pub total_chunks: u32,
pub model_config: ModelConfig,
pub model_group_id: Option<String>,
pub url: Option<String>,
pub description: Option<String>,
pub model_format: String,
pub model_content_hash_value: String,
}Fields§
§version: String§name: StringThe model name.
total_chunks: u32Number of chunks the model is split into.
model_config: ModelConfig§model_group_id: Option<String>§url: Option<String>The model URL.
description: Option<String>The model description.
model_format: String§model_content_hash_value: StringThe model content hash value.
Implementations§
Source§impl CreateModelMetaRequestBodyJson
impl CreateModelMetaRequestBodyJson
pub fn new( version: String, name: String, total_chunks: u32, model_config: ModelConfig, model_format: String, model_content_hash_value: String, ) -> CreateModelMetaRequestBodyJson
Trait Implementations§
Source§impl Clone for CreateModelMetaRequestBodyJson
impl Clone for CreateModelMetaRequestBodyJson
Source§fn clone(&self) -> CreateModelMetaRequestBodyJson
fn clone(&self) -> CreateModelMetaRequestBodyJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CreateModelMetaRequestBodyJson
impl Default for CreateModelMetaRequestBodyJson
Source§fn default() -> CreateModelMetaRequestBodyJson
fn default() -> CreateModelMetaRequestBodyJson
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateModelMetaRequestBodyJson
impl<'de> Deserialize<'de> for CreateModelMetaRequestBodyJson
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
Source§impl PartialEq for CreateModelMetaRequestBodyJson
impl PartialEq for CreateModelMetaRequestBodyJson
Source§fn eq(&self, other: &CreateModelMetaRequestBodyJson) -> bool
fn eq(&self, other: &CreateModelMetaRequestBodyJson) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateModelMetaRequestBodyJson
Auto Trait Implementations§
impl Freeze for CreateModelMetaRequestBodyJson
impl RefUnwindSafe for CreateModelMetaRequestBodyJson
impl Send for CreateModelMetaRequestBodyJson
impl Sync for CreateModelMetaRequestBodyJson
impl Unpin for CreateModelMetaRequestBodyJson
impl UnsafeUnpin for CreateModelMetaRequestBodyJson
impl UnwindSafe for CreateModelMetaRequestBodyJson
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