pub struct ImageGenerationModel {
pub id: String,
pub fingerprint: String,
pub max_prompt_length: i64,
pub created: i64,
pub object: String,
pub owned_by: String,
pub version: String,
pub input_modalities: Vec<String>,
pub output_modalities: Vec<String>,
pub image_price: i64,
pub aliases: Vec<String>,
}Expand description
Details of an image generation model.
Fields§
§id: StringModel ID.
fingerprint: StringFingerprint of the xAI system configuration hosting the model.
max_prompt_length: i64Maximum prompt length.
created: i64Model creation time in Unix timestamp.
object: StringThe object type, which is always "model".
owned_by: StringOwner of the model.
version: StringVersion of the model.
input_modalities: Vec<String>The input modalities supported by the model.
output_modalities: Vec<String>The output modalities supported by the model.
image_price: i64Price of a single image in USD cents.
aliases: Vec<String>Alias ID(s) of the model that user can use in a request’s model field.
Trait Implementations§
Source§impl Clone for ImageGenerationModel
impl Clone for ImageGenerationModel
Source§fn clone(&self) -> ImageGenerationModel
fn clone(&self) -> ImageGenerationModel
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 ImageGenerationModel
impl Debug for ImageGenerationModel
Source§impl Default for ImageGenerationModel
impl Default for ImageGenerationModel
Source§fn default() -> ImageGenerationModel
fn default() -> ImageGenerationModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageGenerationModel
impl<'de> Deserialize<'de> for ImageGenerationModel
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 ImageGenerationModel
impl PartialEq for ImageGenerationModel
Source§impl Serialize for ImageGenerationModel
impl Serialize for ImageGenerationModel
impl StructuralPartialEq for ImageGenerationModel
Auto Trait Implementations§
impl Freeze for ImageGenerationModel
impl RefUnwindSafe for ImageGenerationModel
impl Send for ImageGenerationModel
impl Sync for ImageGenerationModel
impl Unpin for ImageGenerationModel
impl UnwindSafe for ImageGenerationModel
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