pub struct OpenApiConfig {
pub app_key: String,
pub app_secret: String,
pub endpoint: String,
pub cloud_endpoint: String,
pub hpc_endpoint: String,
pub sync_endpoint: String,
pub user_id: String,
pub zone: String,
}
Fields§
§app_key: String
§app_secret: String
§endpoint: String
§cloud_endpoint: String
§hpc_endpoint: String
§sync_endpoint: String
§user_id: String
§zone: String
Implementations§
Source§impl OpenApiConfig
impl OpenApiConfig
pub fn new() -> Self
pub fn with_app_key(self, app_key: String) -> Self
pub fn with_app_secret(self, app_secret: String) -> Self
pub fn with_endpoint(self, endpoint: String) -> Self
pub fn with_cloud_endpoint(self, cloud_endpoint: String) -> Self
pub fn with_hpc_endpoint(self, hpc_endpoint: String) -> Self
pub fn with_user_id(self, user_id: String) -> Self
pub fn with_zone(self, zone: String) -> Self
pub fn load_from_env(&mut self) -> Result<Self>
Trait Implementations§
Source§impl Debug for OpenApiConfig
impl Debug for OpenApiConfig
Source§impl Default for OpenApiConfig
impl Default for OpenApiConfig
Source§fn default() -> OpenApiConfig
fn default() -> OpenApiConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenApiConfig
impl RefUnwindSafe for OpenApiConfig
impl Send for OpenApiConfig
impl Sync for OpenApiConfig
impl Unpin for OpenApiConfig
impl UnwindSafe for OpenApiConfig
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