pub struct ProjectManagerConfig {
pub project_id: String,
pub api_key: String,
pub cluster: Option<ClusterConfig>,
pub auth_jwt_url: Option<String>,
}Expand description
Configuration for OramaCloud
Fields§
§project_id: String§api_key: String§cluster: Option<ClusterConfig>§auth_jwt_url: Option<String>Implementations§
Source§impl ProjectManagerConfig
impl ProjectManagerConfig
Sourcepub fn new<S: Into<String>>(project_id: S, api_key: S) -> Self
pub fn new<S: Into<String>>(project_id: S, api_key: S) -> Self
Create a new ProjectManagerConfig
Sourcepub fn with_cluster(self, cluster: ClusterConfig) -> Self
pub fn with_cluster(self, cluster: ClusterConfig) -> Self
Set cluster configuration
Sourcepub fn with_auth_jwt_url<S: Into<String>>(self, url: S) -> Self
pub fn with_auth_jwt_url<S: Into<String>>(self, url: S) -> Self
Set auth JWT URL
Trait Implementations§
Source§impl Clone for ProjectManagerConfig
impl Clone for ProjectManagerConfig
Source§fn clone(&self) -> ProjectManagerConfig
fn clone(&self) -> ProjectManagerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectManagerConfig
impl RefUnwindSafe for ProjectManagerConfig
impl Send for ProjectManagerConfig
impl Sync for ProjectManagerConfig
impl Unpin for ProjectManagerConfig
impl UnsafeUnpin for ProjectManagerConfig
impl UnwindSafe for ProjectManagerConfig
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