pub struct EndpointConfig {
pub paas_v4_base: String,
pub coding_paas_v4_base: String,
pub llm_application_base: String,
pub realtime_base: String,
pub monitor_base: String,
}Expand description
Runtime-configurable API bases.
Fields§
§paas_v4_base: String§coding_paas_v4_base: String§llm_application_base: String§realtime_base: String§monitor_base: StringMonitor / usage-statistics base URL.
Implementations§
Source§impl EndpointConfig
impl EndpointConfig
pub fn with_paas_v4_base(self, base: impl Into<String>) -> Self
pub fn with_coding_paas_v4_base(self, base: impl Into<String>) -> Self
pub fn with_llm_application_base(self, base: impl Into<String>) -> Self
pub fn with_realtime_base(self, base: impl Into<String>) -> Self
Sourcepub fn with_monitor_base(self, base: impl Into<String>) -> Self
pub fn with_monitor_base(self, base: impl Into<String>) -> Self
Override the monitor / usage-statistics base URL.
pub fn base<'a>(&'a self, api_base: &'a ApiBase) -> &'a str
pub fn url(&self, api_base: &ApiBase, path: &str) -> String
Trait Implementations§
Source§impl Clone for EndpointConfig
impl Clone for EndpointConfig
Source§fn clone(&self) -> EndpointConfig
fn clone(&self) -> EndpointConfig
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 EndpointConfig
impl Debug for EndpointConfig
Source§impl Default for EndpointConfig
impl Default for EndpointConfig
impl Eq for EndpointConfig
Source§impl PartialEq for EndpointConfig
impl PartialEq for EndpointConfig
Source§fn eq(&self, other: &EndpointConfig) -> bool
fn eq(&self, other: &EndpointConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EndpointConfig
Auto Trait Implementations§
impl Freeze for EndpointConfig
impl RefUnwindSafe for EndpointConfig
impl Send for EndpointConfig
impl Sync for EndpointConfig
impl Unpin for EndpointConfig
impl UnsafeUnpin for EndpointConfig
impl UnwindSafe for EndpointConfig
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.