pub struct Builder { /* private fields */ }Implementations§
source§impl Builder
impl Builder
pub fn new() -> Self
pub fn with_url(&mut self, url: &str) -> &mut Self
pub fn with_api_key(&mut self, api_key: &str) -> &mut Self
sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Create a new Oso client from environment variables.
The following environment variables are used:
OSO_URL- The URL of the Oso Cloud instance to connect to. Defaults tohttps://api.osohq.com.OSO_AUTH- The API key to use when connecting to Oso Cloud. Defaults to an empty string.