I would be super nice to be able to construct CredentialsFile from plain &str instead of having to pass a file path (eventually have to create a file) or set an environment variable.
Let's say you have the credentials json content already, it's not very handy to put its content to a file or to set an environment variable in order to construct CredentialsFile.
Proposal
Having a new function in CredentialsFile taking a plain &str (meant to be credentials json content) and returning a CredentialsFile:
Hi there! :)
Context
I would be super nice to be able to construct
CredentialsFile
from plain&str
instead of having to pass a file path (eventually have to create a file) or set an environment variable. Let's say you have the credentials json content already, it's not very handy to put its content to a file or to set an environment variable in order to constructCredentialsFile
.Proposal
Having a new function in
CredentialsFile
taking a plain&str
(meant to be credentials json content) and returning aCredentialsFile
:One can then use the API this way:
Thanks a lot :)