pub struct ModelStudioConfig {
pub enabled: bool,
pub config_dir: Option<PathBuf>,
}Expand description
Alibaba Cloud Model Studio (Token Plan) — a local-login vendor, like
Grok Bot: the credential is the official bl CLI’s own console-login file
(~/.bailian/config.json, read-only; AK/SK refresh is out of scope).
No API key exists, so there is no api_key_env. The BAILIAN_CONFIG_DIR
environment variable overrides the directory at runtime; config_dir
here overrides it in config, and wins.
Fields§
§enabled: boolOpt-in (defaults to false), like every vendor riding a local CLI’s
session.
config_dir: Option<PathBuf>Override for the bl CLI’s config directory (default ~/.bailian),
mirroring [grokbot] secrets_path.
Trait Implementations§
Source§impl Clone for ModelStudioConfig
impl Clone for ModelStudioConfig
Source§impl Debug for ModelStudioConfig
impl Debug for ModelStudioConfig
Source§impl Default for ModelStudioConfig
impl Default for ModelStudioConfig
Source§impl<'de> Deserialize<'de> for ModelStudioConfigwhere
ModelStudioConfig: Default,
impl<'de> Deserialize<'de> for ModelStudioConfigwhere
ModelStudioConfig: Default,
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 ModelStudioConfig
impl RefUnwindSafe for ModelStudioConfig
impl Send for ModelStudioConfig
impl Sync for ModelStudioConfig
impl Unpin for ModelStudioConfig
impl UnsafeUnpin for ModelStudioConfig
impl UnwindSafe for ModelStudioConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more