pub struct GrpcAction {
pub port: Option<i32>,
pub service: Option<String>,
}Fields§
§port: Option<i32>Port number of the gRPC service. Number must be in the range 1 to 65535.
service: Option<String>Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. +optional +default=""
Implementations§
Source§impl GrpcAction
impl GrpcAction
pub fn new() -> GrpcAction
Trait Implementations§
Source§impl Clone for GrpcAction
impl Clone for GrpcAction
Source§fn clone(&self) -> GrpcAction
fn clone(&self) -> GrpcAction
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 GrpcAction
impl Debug for GrpcAction
Source§impl<'de> Deserialize<'de> for GrpcAction
impl<'de> Deserialize<'de> for GrpcAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for GrpcAction
Converts Query Parameters representation (style=form, explode=false) to a GrpcAction value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for GrpcAction
Converts Query Parameters representation (style=form, explode=false) to a GrpcAction value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for GrpcAction
impl PartialEq for GrpcAction
Source§impl Serialize for GrpcAction
impl Serialize for GrpcAction
Source§impl ToString for GrpcAction
Converts the GrpcAction value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for GrpcAction
Converts the GrpcAction value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for GrpcAction
impl Validate for GrpcAction
Source§impl<'v_a> ValidateArgs<'v_a> for GrpcAction
impl<'v_a> ValidateArgs<'v_a> for GrpcAction
impl StructuralPartialEq for GrpcAction
Auto Trait Implementations§
impl Freeze for GrpcAction
impl RefUnwindSafe for GrpcAction
impl Send for GrpcAction
impl Sync for GrpcAction
impl Unpin for GrpcAction
impl UnwindSafe for GrpcAction
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