pub struct Provider { /* private fields */ }Expand description
对外暴露的 Provider 句柄。
Implementations§
Source§impl Provider
impl Provider
Sourcepub fn azure_with_options(options: AzureOptions) -> Self
pub fn azure_with_options(options: AzureOptions) -> Self
创建带自定义选项的 Azure Provider。
Sourcepub fn custom<T>(profile: T) -> Selfwhere
T: ProviderProfile + 'static,
pub fn custom<T>(profile: T) -> Selfwhere
T: ProviderProfile + 'static,
创建自定义 Provider。
Sourcepub fn kind(&self) -> ProviderKind
pub fn kind(&self) -> ProviderKind
返回 Provider 类型。
Sourcepub fn default_base_url(&self) -> &str
pub fn default_base_url(&self) -> &str
返回默认基础地址。
Sourcepub fn profile(&self) -> &(dyn ProviderProfile + Send + Sync)
pub fn profile(&self) -> &(dyn ProviderProfile + Send + Sync)
返回 ProviderProfile 引用。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Provider
impl !RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnsafeUnpin for Provider
impl !UnwindSafe for Provider
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