pub struct EnvironmentConfig { /* private fields */ }Expand description
Runtime configuration describing the API environment.
Implementations§
Source§impl EnvironmentConfig
impl EnvironmentConfig
Sourcepub fn enterprise(
project_number: impl Into<String>,
location: impl Into<String>,
endpoint_location: impl Into<String>,
) -> Result<Self>
pub fn enterprise( project_number: impl Into<String>, location: impl Into<String>, endpoint_location: impl Into<String>, ) -> Result<Self>
Construct the environment config for the Enterprise SKU.
pub fn profile(&self) -> ApiProfile
pub fn base_url(&self) -> &str
pub fn parent_path(&self) -> &str
Sourcepub fn with_base_url(self, base_url: impl Into<String>) -> Self
pub fn with_base_url(self, base_url: impl Into<String>) -> Self
Return a copy with a different base URL (useful for tests or overrides).
pub fn from_profile(profile: ApiProfile, params: ProfileParams) -> Result<Self>
Trait Implementations§
Source§impl Clone for EnvironmentConfig
impl Clone for EnvironmentConfig
Source§fn clone(&self) -> EnvironmentConfig
fn clone(&self) -> EnvironmentConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EnvironmentConfig
impl RefUnwindSafe for EnvironmentConfig
impl Send for EnvironmentConfig
impl Sync for EnvironmentConfig
impl Unpin for EnvironmentConfig
impl UnwindSafe for EnvironmentConfig
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