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§
Source§impl 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 Freeze for Url
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnwindSafe for Url
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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