pub struct InputModalities {
pub text: bool,
pub image: bool,
pub audio: bool,
pub video: bool,
}Expand description
Model inputs accepted by a prepared model.
Fields§
§text: boolOrdinary tokenizer IDs.
image: boolPrepared image inputs.
audio: boolPrepared audio inputs.
video: boolPrepared video inputs.
Implementations§
Trait Implementations§
Source§impl Clone for InputModalities
impl Clone for InputModalities
Source§fn clone(&self) -> InputModalities
fn clone(&self) -> InputModalities
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 moreimpl Copy for InputModalities
Source§impl Debug for InputModalities
impl Debug for InputModalities
Source§impl<'de> Deserialize<'de> for InputModalities
impl<'de> Deserialize<'de> for InputModalities
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 InputModalities
Source§impl PartialEq for InputModalities
impl PartialEq for InputModalities
Source§impl Serialize for InputModalities
impl Serialize for InputModalities
impl StructuralPartialEq for InputModalities
Auto Trait Implementations§
impl Freeze for InputModalities
impl RefUnwindSafe for InputModalities
impl Send for InputModalities
impl Sync for InputModalities
impl Unpin for InputModalities
impl UnsafeUnpin for InputModalities
impl UnwindSafe for InputModalities
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