moving towards upgraded crates
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// This file is @generated by prost-build.
|
||||
/// Request validation rules for a table
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct GetTableValidationRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
@@ -48,7 +48,7 @@ pub struct FieldValidation {
|
||||
/// Character limit validation (Validation 1).
|
||||
/// These rules map directly to canvas CharacterLimits.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct CharacterLimits {
|
||||
/// When zero, the field is considered "not set". If both min/max are zero,
|
||||
/// the server should avoid sending this FieldValidation (no validation).
|
||||
@@ -68,7 +68,7 @@ pub struct CharacterLimits {
|
||||
/// This is not a validation rule by itself. It exists so clients can render and
|
||||
/// navigate masked input while still storing raw values server-side.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct DisplayMask {
|
||||
/// e.g., "(###) ###-####" or "####-##-##"
|
||||
#[prost(string, tag = "1")]
|
||||
@@ -76,7 +76,7 @@ pub struct DisplayMask {
|
||||
/// e.g., "#"
|
||||
#[prost(string, tag = "2")]
|
||||
pub input_char: ::prost::alloc::string::String,
|
||||
/// e.g., "_"
|
||||
/// e.g., "\_"
|
||||
#[prost(string, optional, tag = "3")]
|
||||
pub template_char: ::core::option::Option<::prost::alloc::string::String>,
|
||||
}
|
||||
@@ -84,7 +84,7 @@ pub struct DisplayMask {
|
||||
/// This exists instead of a string syntax like "0-3" so the server can validate
|
||||
/// the structure directly and clients do not need to parse a DSL.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct PatternPosition {
|
||||
#[prost(enumeration = "PatternPositionKind", tag = "1")]
|
||||
pub kind: i32,
|
||||
@@ -100,7 +100,7 @@ pub struct PatternPosition {
|
||||
/// What type of character constraint a pattern rule applies.
|
||||
/// This mirrors the typed character filters used by canvas.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct CharacterConstraint {
|
||||
#[prost(enumeration = "CharacterConstraintKind", tag = "1")]
|
||||
pub kind: i32,
|
||||
@@ -116,7 +116,7 @@ pub struct CharacterConstraint {
|
||||
}
|
||||
/// One position-based validation rule, similar to canvas PositionFilter.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct PatternRule {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub position: ::core::option::Option<PatternPosition>,
|
||||
@@ -126,7 +126,7 @@ pub struct PatternRule {
|
||||
/// Exact-value whitelist configuration.
|
||||
/// This maps to canvas AllowedValues semantics.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct AllowedValues {
|
||||
#[prost(string, repeated, tag = "1")]
|
||||
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||
@@ -159,7 +159,7 @@ pub struct UpdateFieldValidationRequest {
|
||||
pub validation: ::core::option::Option<FieldValidation>,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct UpdateFieldValidationResponse {
|
||||
#[prost(bool, tag = "1")]
|
||||
pub success: bool,
|
||||
@@ -178,7 +178,7 @@ pub struct ReplaceTableValidationRequest {
|
||||
pub fields: ::prost::alloc::vec::Vec<FieldValidation>,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct ReplaceTableValidationResponse {
|
||||
#[prost(bool, tag = "1")]
|
||||
pub success: bool,
|
||||
@@ -246,7 +246,7 @@ pub struct UpsertValidationRuleRequest {
|
||||
pub rule: ::core::option::Option<ValidationRuleDefinition>,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct UpsertValidationRuleResponse {
|
||||
#[prost(bool, tag = "1")]
|
||||
pub success: bool,
|
||||
@@ -254,7 +254,7 @@ pub struct UpsertValidationRuleResponse {
|
||||
pub message: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct ListValidationRulesRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
@@ -266,7 +266,7 @@ pub struct ListValidationRulesResponse {
|
||||
pub rules: ::prost::alloc::vec::Vec<ValidationRuleDefinition>,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct DeleteValidationRuleRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
@@ -274,7 +274,7 @@ pub struct DeleteValidationRuleRequest {
|
||||
pub name: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct DeleteValidationRuleResponse {
|
||||
#[prost(bool, tag = "1")]
|
||||
pub success: bool,
|
||||
@@ -290,7 +290,7 @@ pub struct UpsertValidationSetRequest {
|
||||
pub set: ::core::option::Option<ValidationSetDefinition>,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct UpsertValidationSetResponse {
|
||||
#[prost(bool, tag = "1")]
|
||||
pub success: bool,
|
||||
@@ -298,7 +298,7 @@ pub struct UpsertValidationSetResponse {
|
||||
pub message: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct ListValidationSetsRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
@@ -310,7 +310,7 @@ pub struct ListValidationSetsResponse {
|
||||
pub sets: ::prost::alloc::vec::Vec<ValidationSetDefinition>,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct DeleteValidationSetRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
@@ -318,7 +318,7 @@ pub struct DeleteValidationSetRequest {
|
||||
pub name: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct DeleteValidationSetResponse {
|
||||
#[prost(bool, tag = "1")]
|
||||
pub success: bool,
|
||||
@@ -326,7 +326,7 @@ pub struct DeleteValidationSetResponse {
|
||||
pub message: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct ApplyValidationSetRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
@@ -348,7 +348,7 @@ pub struct ApplyValidationSetResponse {
|
||||
pub validation: ::core::option::Option<FieldValidation>,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct LockFieldValidationRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
@@ -358,7 +358,7 @@ pub struct LockFieldValidationRequest {
|
||||
pub data_key: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct LockFieldValidationResponse {
|
||||
#[prost(bool, tag = "1")]
|
||||
pub success: bool,
|
||||
@@ -594,7 +594,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/GetTableValidation",
|
||||
);
|
||||
@@ -624,7 +624,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/UpdateFieldValidation",
|
||||
);
|
||||
@@ -654,7 +654,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/ReplaceTableValidation",
|
||||
);
|
||||
@@ -684,7 +684,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/UpsertValidationRule",
|
||||
);
|
||||
@@ -713,7 +713,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/ListValidationRules",
|
||||
);
|
||||
@@ -742,7 +742,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/DeleteValidationRule",
|
||||
);
|
||||
@@ -772,7 +772,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/UpsertValidationSet",
|
||||
);
|
||||
@@ -801,7 +801,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/ListValidationSets",
|
||||
);
|
||||
@@ -830,7 +830,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/DeleteValidationSet",
|
||||
);
|
||||
@@ -860,7 +860,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/ApplyValidationSet",
|
||||
);
|
||||
@@ -890,7 +890,7 @@ pub mod table_validation_service_client {
|
||||
format!("Service was not ready: {}", e.into()),
|
||||
)
|
||||
})?;
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let path = http::uri::PathAndQuery::from_static(
|
||||
"/komp_ac.table_validation.TableValidationService/LockFieldValidation",
|
||||
);
|
||||
@@ -1115,7 +1115,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = GetTableValidationSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1166,7 +1166,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = UpdateFieldValidationSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1217,7 +1217,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = ReplaceTableValidationSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1268,7 +1268,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = UpsertValidationRuleSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1317,7 +1317,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = ListValidationRulesSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1368,7 +1368,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = DeleteValidationRuleSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1417,7 +1417,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = UpsertValidationSetSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1466,7 +1466,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = ListValidationSetsSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1515,7 +1515,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = DeleteValidationSetSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1564,7 +1564,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = ApplyValidationSetSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
@@ -1613,7 +1613,7 @@ pub mod table_validation_service_server {
|
||||
let inner = self.inner.clone();
|
||||
let fut = async move {
|
||||
let method = LockFieldValidationSvc(inner);
|
||||
let codec = tonic::codec::ProstCodec::default();
|
||||
let codec = tonic_prost::ProstCodec::default();
|
||||
let mut grpc = tonic::server::Grpc::new(codec)
|
||||
.apply_compression_config(
|
||||
accept_compression_encodings,
|
||||
|
||||
Reference in New Issue
Block a user