pub struct ImageModelConfig {
pub provider: String,
pub api_key_env: String,
pub model: String,
}Expand description
#132 PR-1: AI image-generation config for child-bot profile
pictures. Mirrors the SttConfig shape (provider / api_key_env /
model). v1 provider is openai; adding a future provider is one
match arm in the call site.
Fields§
§provider: StringProvider arm. v1: openai.
api_key_env: StringEnv var holding the provider’s API key (mirrors bot_token_env
and SttConfig.api_key_env). The actual secret lives in
.team/.env and is resolved by teamctl bot setup at wizard
time.
model: StringProvider model id (e.g. gpt-image-2 for OpenAI; snapshot id
gpt-image-2-2026-04-21 for pinning).
Trait Implementations§
Source§impl Clone for ImageModelConfig
impl Clone for ImageModelConfig
Source§fn clone(&self) -> ImageModelConfig
fn clone(&self) -> ImageModelConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageModelConfig
impl Debug for ImageModelConfig
Source§impl<'de> Deserialize<'de> for ImageModelConfig
impl<'de> Deserialize<'de> for ImageModelConfig
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
Auto Trait Implementations§
impl Freeze for ImageModelConfig
impl RefUnwindSafe for ImageModelConfig
impl Send for ImageModelConfig
impl Sync for ImageModelConfig
impl Unpin for ImageModelConfig
impl UnsafeUnpin for ImageModelConfig
impl UnwindSafe for ImageModelConfig
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