We should allow creating a DatabaseClient and ContainerClient using RIDs instead of names. Before GA, we should consider introducing an enum like ResourceIdentity (name TBD):
#[non_exhaustive]
pub enum ResourceIdentity<'a> {
Name(&'a str),
Rid(&'a ResourceId),
}
Then we can change database_client and container_client APIs to take impl Into<ResourceIdentity<'_>> and implement Into<ResourceIdentity> for &str and a ResourceId newtype.
We should allow creating a
DatabaseClientandContainerClientusing RIDs instead of names. Before GA, we should consider introducing an enum likeResourceIdentity(name TBD):Then we can change
database_clientandcontainer_clientAPIs to takeimpl Into<ResourceIdentity<'_>>and implementInto<ResourceIdentity>for&strand aResourceIdnewtype.