pub struct FoundryServiceConfig {
pub name: String,
pub project: String,
pub api_version: String,
pub endpoint: Option<String>,
pub subscription: Option<String>,
pub resource_group: Option<String>,
}Expand description
Foundry service configuration
Fields§
§name: StringAI services host name (e.g., “my-ai-service”)
project: StringFoundry project name
api_version: StringAPI version to use
endpoint: Option<String>Service endpoint URL (discovered from ARM; overrides name-based URL construction)
subscription: Option<String>Azure subscription ID (optional)
resource_group: Option<String>Resource group (optional)
Implementations§
Source§impl FoundryServiceConfig
impl FoundryServiceConfig
Sourcepub fn service_url(&self) -> String
pub fn service_url(&self) -> String
Get the base URL for this Foundry service.
Prefers the endpoint field (discovered from ARM) over a URL
constructed from name, since the ARM custom subdomain may differ
from the resource name.
Trait Implementations§
Source§impl Clone for FoundryServiceConfig
impl Clone for FoundryServiceConfig
Source§fn clone(&self) -> FoundryServiceConfig
fn clone(&self) -> FoundryServiceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FoundryServiceConfig
impl Debug for FoundryServiceConfig
Source§impl<'de> Deserialize<'de> for FoundryServiceConfig
impl<'de> Deserialize<'de> for FoundryServiceConfig
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
Source§impl PartialEq for FoundryServiceConfig
impl PartialEq for FoundryServiceConfig
Source§impl Serialize for FoundryServiceConfig
impl Serialize for FoundryServiceConfig
impl StructuralPartialEq for FoundryServiceConfig
Auto Trait Implementations§
impl Freeze for FoundryServiceConfig
impl RefUnwindSafe for FoundryServiceConfig
impl Send for FoundryServiceConfig
impl Sync for FoundryServiceConfig
impl Unpin for FoundryServiceConfig
impl UnwindSafe for FoundryServiceConfig
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