pub struct ApiSettings {
pub namespace: String,
pub url_template: Option<String>,
pub api_server_base: Option<String>,
pub service_prefix: String,
}
Fields§
§namespace: String
§url_template: Option<String>
§api_server_base: Option<String>
§service_prefix: String
Implementations§
Source§impl ApiSettings
impl ApiSettings
pub fn backend_to_slab_name(&self, backend_id: &str) -> String
pub fn backend_to_url(&self, backend_id: &str) -> Option<String>
pub fn backend_api_path(&self, backend_id: &str, path: &str) -> Option<String>
pub fn get_init_result(&self, backend_id: &str) -> SpawnResult
pub fn slab_name_to_backend(&self, slab_name: &str) -> Option<String>
Auto Trait Implementations§
impl Freeze for ApiSettings
impl RefUnwindSafe for ApiSettings
impl Send for ApiSettings
impl Sync for ApiSettings
impl Unpin for ApiSettings
impl UnwindSafe for ApiSettings
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more