pub struct Registry { /* private fields */ }
Expand description
This crate’s entry point.
Implementations§
Source§impl Registry
impl Registry
Sourcepub async fn connect(hostname: &str) -> Result<Self, Error>
pub async fn connect(hostname: &str) -> Result<Self, Error>
Connect to a custom Terraform Registry
Sourcepub async fn connect_default() -> Result<Self, Error>
pub async fn connect_default() -> Result<Self, Error>
Connect to default Terraform Registry (registry.terraform.io)
pub async fn list_module_versions( &self, address: &Address, ) -> Result<Vec<Module>, Error>
pub async fn list_provider_versions( &self, address: &Address, ) -> Result<Vec<Provider>, Error>
Auto Trait Implementations§
impl Freeze for Registry
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
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