pub struct NacosConfig {
pub server_addr: String,
pub namespace: String,
pub group: Option<String>,
pub app_name: Option<String>,
pub username: String,
pub password: String,
}
Fields§
§server_addr: String
§namespace: String
§group: Option<String>
§app_name: Option<String>
§username: String
§password: String
Implementations§
Source§impl NacosConfig
impl NacosConfig
pub fn builder() -> NacosConfigBuilder
Trait Implementations§
Source§impl Default for NacosConfig
impl Default for NacosConfig
Source§fn default() -> NacosConfig
fn default() -> NacosConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NacosConfig
impl RefUnwindSafe for NacosConfig
impl Send for NacosConfig
impl Sync for NacosConfig
impl Unpin for NacosConfig
impl UnwindSafe for NacosConfig
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request