pub struct VideosApi { /* private fields */ }Expand description
Videos API client.
Implementations§
Source§impl VideosApi
impl VideosApi
Sourcepub fn generate(
&self,
model: impl Into<String>,
prompt: impl Into<String>,
) -> VideoGenerationBuilder
pub fn generate( &self, model: impl Into<String>, prompt: impl Into<String>, ) -> VideoGenerationBuilder
Create a video generation request.
§Example
use xai_rust::XaiClient;
let client = XaiClient::from_env()?;
let response = client.videos().generate("grok-video", "A cat on screen").send().await?;
println!("videos: {:?}", response.first_url());Trait Implementations§
Auto Trait Implementations§
impl Freeze for VideosApi
impl !RefUnwindSafe for VideosApi
impl Send for VideosApi
impl Sync for VideosApi
impl Unpin for VideosApi
impl UnsafeUnpin for VideosApi
impl !UnwindSafe for VideosApi
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