pub struct MessageField {
pub name: String,
pub json_name: Option<String>,
pub response_header: Option<String>,
pub request_header: Option<String>,
pub emit_unpopulated: bool,
pub raw_body: bool,
pub unified_type: UnifiedType,
pub documentation: Option<String>,
pub oneof_variants: Option<Vec<OneofVariant>>,
pub field_behavior: Vec<FieldBehavior>,
pub is_sensitive: bool,
pub resource_reference: Option<ResourceReference>,
}Expand description
Information about a field in a protobuf message
Fields§
§name: String§json_name: Option<String>The explicit json_name of the field; None for protoc’s default.
response_header: Option<String>The HTTP response header this field is read from ((olai.trestle.v1.response_header)).
request_header: Option<String>The HTTP request header this field is sent in ((olai.trestle.v1.request_header)).
emit_unpopulated: boolWhether the field is sent even when unpopulated ((olai.trestle.v1.emit_unpopulated)).
raw_body: boolWhether the field is the raw HTTP body of its message ((olai.trestle.v1.raw_body)).
unified_type: UnifiedTypeLanguage-agnostic type; carries is_optional and is_repeated flags.
documentation: Option<String>§oneof_variants: Option<Vec<OneofVariant>>For oneof fields, contains the variants with their field names and types.
field_behavior: Vec<FieldBehavior>Field behavior annotations from google.api.field_behavior
is_sensitive: boolWhether the field is marked with debug_redact = true in the proto definition.
Indicates the field contains sensitive data that should be routed to secret storage.
resource_reference: Option<ResourceReference>Resource reference annotation from google.api.resource_reference (ext 1055).
child_typenon-empty: this field identifies a parent container for the named resource (e.g.catalog_namewithchild_type = "example.io/Schema").r#typenon-empty: this field directly identifies a resource of that type (e.g.full_namewithtype = "example.io/Table").
Trait Implementations§
Source§impl Clone for MessageField
impl Clone for MessageField
Auto Trait Implementations§
impl Forget for MessageField
impl Freeze for MessageField
impl RefUnwindSafe for MessageField
impl Send for MessageField
impl Sync for MessageField
impl Unpin for MessageField
impl UnsafeUnpin for MessageField
impl UnwindSafe for MessageField
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more