pub struct NihilityModelConfig {
pub channel: HashMap<String, ApiConfig>,
pub model: HashMap<ModelType, ChannelModel>,
}Fields§
§channel: HashMap<String, ApiConfig>§model: HashMap<ModelType, ChannelModel>Implementations§
Source§impl NihilityModelConfig
impl NihilityModelConfig
pub fn model_client( &self, http_client: Client, model_type: ModelType, ) -> Result<(ModelClient, String), NihilityModelError>
Trait Implementations§
Source§impl Clone for NihilityModelConfig
impl Clone for NihilityModelConfig
Source§fn clone(&self) -> NihilityModelConfig
fn clone(&self) -> NihilityModelConfig
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 NihilityModelConfig
impl Debug for NihilityModelConfig
Source§impl Default for NihilityModelConfig
impl Default for NihilityModelConfig
Source§impl<'de> Deserialize<'de> for NihilityModelConfig
impl<'de> Deserialize<'de> for NihilityModelConfig
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 NihilityModelConfig
impl RefUnwindSafe for NihilityModelConfig
impl Send for NihilityModelConfig
impl Sync for NihilityModelConfig
impl Unpin for NihilityModelConfig
impl UnsafeUnpin for NihilityModelConfig
impl UnwindSafe for NihilityModelConfig
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