pub struct ServiceRoute {
pub addr: String,
pub tls: bool,
pub query_path: Option<String>,
pub subscribe_path: Option<String>,
}
Expand description
Service routing information.
Fields§
§addr: String
Service address
For example: 1.2.3.4:8000, example.com:8080
tls: bool
Use TLS
query_path: Option<String>
GraphQL HTTP path, default is /
.
subscribe_path: Option<String>
GraphQL WebSocket path, default is /
.
Trait Implementations§
Source§impl Clone for ServiceRoute
impl Clone for ServiceRoute
Source§fn clone(&self) -> ServiceRoute
fn clone(&self) -> ServiceRoute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServiceRoute
impl Debug for ServiceRoute
Source§impl PartialEq for ServiceRoute
impl PartialEq for ServiceRoute
impl Eq for ServiceRoute
impl StructuralPartialEq for ServiceRoute
Auto Trait Implementations§
impl Freeze for ServiceRoute
impl RefUnwindSafe for ServiceRoute
impl Send for ServiceRoute
impl Sync for ServiceRoute
impl Unpin for ServiceRoute
impl UnwindSafe for ServiceRoute
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.