pub struct Url {
pub uri: String,
pub protocol: String,
pub location: String,
pub ip: String,
pub port: String,
pub service_key: Vec<String>,
pub params: HashMap<String, String>,
}
Fields
uri: String
protocol: String
location: String
ip: String
port: String
service_key: Vec<String>
params: HashMap<String, String>
Implementations
sourceimpl Url
impl Url
pub fn new() -> Self
pub fn from_url(url: &str) -> Option<Self>
pub fn get_service_name(&self) -> Vec<String>
pub fn get_param(&self, key: String) -> Option<String>
pub fn encode_param(&self) -> String
pub fn decode(&mut self, params: String)
pub fn to_url(&self) -> String
Trait Implementations
impl StructuralPartialEq for Url
Auto Trait Implementations
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnwindSafe for Url
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request