pub struct ImageCommand {
pub prompt: String,
pub count: usize,
pub size: PictureSize,
pub format: PictureFormat,
pub out: Option<PathBuf>,
}
Fields§
§prompt: String
Description of the image
count: usize
Number of images generated
size: PictureSize
Generated image size
format: PictureFormat
Format of the response
out: Option<PathBuf>
Directory to output files
Implementations§
Source§impl ImageCommand
impl ImageCommand
pub async fn run(&self, client: &Client) -> ImageResult
Trait Implementations§
Source§impl Args for ImageCommand
impl Args for ImageCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for ImageCommand
impl Clone for ImageCommand
Source§fn clone(&self) -> ImageCommand
fn clone(&self) -> ImageCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ImageCommand
impl Debug for ImageCommand
Source§impl Default for ImageCommand
impl Default for ImageCommand
Source§impl FromArgMatches for ImageCommand
impl FromArgMatches for ImageCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for ImageCommand
impl RefUnwindSafe for ImageCommand
impl Send for ImageCommand
impl Sync for ImageCommand
impl Unpin for ImageCommand
impl UnwindSafe for ImageCommand
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