pub struct ProductModelArtifactBinding {
pub role: ModelArtifactSourceRole,
pub source_file: String,
pub container_sha256: String,
pub content_sha256: Option<String>,
}Expand description
One selected artifact inside a role-specific model source.
container_sha256 binds the complete source file. content_sha256 is
present when runtime selects content inside that file, for example the
chat-template string inside tokenizer_config.json.
Fields§
§role: ModelArtifactSourceRole§source_file: String§container_sha256: String§content_sha256: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ProductModelArtifactBinding
impl Clone for ProductModelArtifactBinding
Source§fn clone(&self) -> ProductModelArtifactBinding
fn clone(&self) -> ProductModelArtifactBinding
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 Debug for ProductModelArtifactBinding
impl Debug for ProductModelArtifactBinding
Source§impl<'de> Deserialize<'de> for ProductModelArtifactBinding
impl<'de> Deserialize<'de> for ProductModelArtifactBinding
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 ProductModelArtifactBinding
impl StructuralPartialEq for ProductModelArtifactBinding
Auto Trait Implementations§
impl Freeze for ProductModelArtifactBinding
impl RefUnwindSafe for ProductModelArtifactBinding
impl Send for ProductModelArtifactBinding
impl Sync for ProductModelArtifactBinding
impl Unpin for ProductModelArtifactBinding
impl UnsafeUnpin for ProductModelArtifactBinding
impl UnwindSafe for ProductModelArtifactBinding
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