Skip to main content

InfraForm

Enum InfraForm 

Source
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

Source

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§

Source§

impl Clone for InfraForm

Source§

fn clone(&self) -> InfraForm

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for InfraForm

Source§

impl Debug for InfraForm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for InfraForm

Source§

impl PartialEq for InfraForm

Source§

fn eq(&self, other: &InfraForm) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InfraForm

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.