pub struct ImagesConfig {
pub default_model: Option<String>,
pub base_url: Option<String>,
pub out_dir: PathBuf,
pub cwd: PathBuf,
pub api_key: KeyLookup,
pub transport: Arc<dyn Transport>,
}Expand description
What the module needs from the session.
Fields§
§default_model: Option<String>The images.model setting.
base_url: Option<String>The images.baseUrl setting.
out_dir: PathBufWhere images go without out (the session’s output directory).
cwd: PathBufWhat a relative out is relative to (the session’s cwd).
api_key: KeyLookup§transport: Arc<dyn Transport>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ImagesConfig
impl !UnwindSafe for ImagesConfig
impl Forget for ImagesConfig
impl Freeze for ImagesConfig
impl Move for ImagesConfig
impl Send for ImagesConfig
impl Sync for ImagesConfig
impl Unpin for ImagesConfig
impl UnsafeUnpin for ImagesConfig
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