Enum aleph_alpha_client::Modality
source · [−]pub enum Modality<'a> {
Text {
data: &'a str,
},
}
Expand description
The prompt for models can be a combination of different modalities (Text and Image). The type of modalities which are supported depend on the Model in question.
Variants
Text
Fields
data: &'a str
The only type of prompt which can be used with pure language models
Implementations
Trait Implementations
impl<'a> Copy for Modality<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Modality<'a>
impl<'a> Send for Modality<'a>
impl<'a> Sync for Modality<'a>
impl<'a> Unpin for Modality<'a>
impl<'a> UnwindSafe for Modality<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more