#[non_exhaustive]pub struct GrpcEndpoint {
pub target_uri: String,
/* private fields */
}Expand description
Specification of the GRPC Endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target_uri: StringRequired. The target URI of the gRPC endpoint. Only UDS path is supported, and should start with “unix:”.
Implementations§
Source§impl GrpcEndpoint
impl GrpcEndpoint
pub fn new() -> Self
Sourcepub fn set_target_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_target_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of target_uri.
Trait Implementations§
Source§impl Clone for GrpcEndpoint
impl Clone for GrpcEndpoint
Source§fn clone(&self) -> GrpcEndpoint
fn clone(&self) -> GrpcEndpoint
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 GrpcEndpoint
impl Debug for GrpcEndpoint
Source§impl Default for GrpcEndpoint
impl Default for GrpcEndpoint
Source§fn default() -> GrpcEndpoint
fn default() -> GrpcEndpoint
Returns the “default value” for a type. Read more
Source§impl Message for GrpcEndpoint
impl Message for GrpcEndpoint
Source§impl PartialEq for GrpcEndpoint
impl PartialEq for GrpcEndpoint
impl StructuralPartialEq for GrpcEndpoint
Auto Trait Implementations§
impl Freeze for GrpcEndpoint
impl RefUnwindSafe for GrpcEndpoint
impl Send for GrpcEndpoint
impl Sync for GrpcEndpoint
impl Unpin for GrpcEndpoint
impl UnwindSafe for GrpcEndpoint
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