pub enum InfraForm {
StorageResourceId,
UserAssignedIdentity,
OpenAiEndpoint,
AiServicesSubdomain,
ApiUri,
KeyVaultUri,
SearchKbMcpUrl,
Endpoint,
}Expand description
The shape an InfraRef value takes — how to recognize the physical
Azure resource it names, and how to rewrite it for a different
environment. See infra::parse/infra::render for the per-form rules.
Variants§
StorageResourceId
ResourceId=/subscriptions/…/storageAccounts/X;… → storage.
UserAssignedIdentity
{ "@odata.type": "#Microsoft.Azure.Search.DataUserAssignedIdentity", "userAssignedIdentity": "/subscriptions/…/userAssignedIdentities/X" }
→ identity (null means system-assigned).
OpenAiEndpoint
https://X.openai.azure.com, https://X.cognitiveservices.azure.com,
https://X.services.ai.azure.com → a model host (ai-services, or the
implicit foundry target).
AiServicesSubdomain
Same hosts as InfraForm::OpenAiEndpoint, but always ai-services
(used by KnowledgeSource.azureBlobParameters.ingestionParameters.aiServices.uri).
ApiUri
https://X.azurewebsites.net/… → function-app; any other
http(s)://HOST/… → an external api binding (prefix match).
KeyVaultUri
https://X.vault.azure.net/… → key-vault.
SearchKbMcpUrl
https://X.search.windows.net/knowledgebases/<kb>/mcp?… → the
implicit search target, plus a sibling reference to
knowledge-bases/<kb>.
Endpoint
A composite endpoint field that may hold any endpoint shape — a
connection’s properties.target, an agent tool’s server_url.
Recognized in order: the InfraForm::SearchKbMcpUrl shape, an
OpenAI / AI-services host (InfraForm::OpenAiEndpoint), a bare
https://X.search.windows.net[/…] endpoint (the implicit search
target, with no knowledge base), then the InfraForm::ApiUri
rules (function app, else external api).
Implementations§
Source§impl InfraForm
impl InfraForm
Sourcepub fn binding_type_label(&self) -> &'static str
pub fn binding_type_label(&self) -> &'static str
The environment binding type a value of this form binds to, as the
dependencies: key that declares it in rigg.yaml.
This is the crate::binding::BindingType infra::binding_type_for
returns for the crate::infra::Target this form parses to, spelled
out for documentation. Composite forms — the ones whose target
depends on the value’s host — list every type they can yield, in the
order infra::parse tries them. search is the implicit
environment target rather than a declared dependency.
Trait Implementations§
impl Copy for InfraForm
impl Eq for InfraForm
impl StructuralPartialEq for InfraForm
Auto Trait Implementations§
impl Freeze for InfraForm
impl RefUnwindSafe for InfraForm
impl Send for InfraForm
impl Sync for InfraForm
impl Unpin for InfraForm
impl UnsafeUnpin for InfraForm
impl UnwindSafe for InfraForm
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
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
key and return true if they are equal.