pub struct ProviderKeyDefinition {
pub key: String,
pub label: String,
pub placeholder: String,
pub required: bool,
pub sensitive: bool,
pub url_template: Option<String>,
}Expand description
Secret key definition for a provider.
Fields§
§key: String§label: String§placeholder: String§required: bool§sensitive: bool§url_template: Option<String>When set, the UI renders this field as a resource segment embedded in
the URL template ({} marks the editable segment), showing the full
endpoint read-only around it. Azure AI Foundry uses this: the user
edits only the resource name and that is all we store.
Trait Implementations§
Source§impl Clone for ProviderKeyDefinition
impl Clone for ProviderKeyDefinition
Source§fn clone(&self) -> ProviderKeyDefinition
fn clone(&self) -> ProviderKeyDefinition
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 ProviderKeyDefinition
impl Debug for ProviderKeyDefinition
Source§impl<'de> Deserialize<'de> for ProviderKeyDefinition
impl<'de> Deserialize<'de> for ProviderKeyDefinition
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 From<ProviderKeyDefinition> for SecretKeyDefinition
impl From<ProviderKeyDefinition> for SecretKeyDefinition
Source§fn from(k: ProviderKeyDefinition) -> Self
fn from(k: ProviderKeyDefinition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProviderKeyDefinition
impl RefUnwindSafe for ProviderKeyDefinition
impl Send for ProviderKeyDefinition
impl Sync for ProviderKeyDefinition
impl Unpin for ProviderKeyDefinition
impl UnsafeUnpin for ProviderKeyDefinition
impl UnwindSafe for ProviderKeyDefinition
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