pub struct MessageField {
pub name: String,
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§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 = "unitycatalog.io/Schema").r#typenon-empty: this field directly identifies a resource of that type (e.g.full_namewithtype = "unitycatalog.io/Table").
Trait Implementations§
Source§impl Clone for MessageField
impl Clone for MessageField
Source§fn clone(&self) -> MessageField
fn clone(&self) -> MessageField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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
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<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>
Converts
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>
Converts
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