pub struct Field {Show 16 fields
pub id: String,
pub query_key: String,
pub properties: Option<Properties>,
pub lifecycle: Option<Lifecycle>,
pub display_hints: Option<DisplayHints>,
pub schema_capabilities: Option<SchemaCapabilities>,
pub applied_capabilities: Option<AppliedCapabilities>,
pub creator: Option<UserInfo>,
pub create_time: Option<Timestamp>,
pub updater: Option<UserInfo>,
pub update_time: Option<Timestamp>,
pub publisher: Option<UserInfo>,
pub disabler: Option<UserInfo>,
pub disable_time: Option<Timestamp>,
pub lock_status: Option<LockStatus>,
pub type: Option<Type>,
}
Expand description
Defines a field that has a display name, data type, and other configuration options. This field defines the kind of metadata that may be set on a Drive item.
Fields§
§id: String
Output only. The key of a field, unique within a label or library.
This value is autogenerated. Matches the regex: (\[a-zA-Z0-9\])+
query_key: String
Output only. The key to use when constructing Drive search queries to find
files based on values defined for this field on files.
For example, “{query_key}
> 2001-01-01”.
properties: Option<Properties>
The basic properties of the field.
lifecycle: Option<Lifecycle>
Output only. The lifecycle of this field.
display_hints: Option<DisplayHints>
Output only. UI display hints for rendering a field.
schema_capabilities: Option<SchemaCapabilities>
Output only. The capabilities this user has when editing this field.
applied_capabilities: Option<AppliedCapabilities>
Output only. The capabilities this user has on this field and its value when the label is applied on Drive items.
creator: Option<UserInfo>
Output only. The user who created this field.
create_time: Option<Timestamp>
Output only. The time this field was created.
updater: Option<UserInfo>
Output only. The user who modified this field.
update_time: Option<Timestamp>
Output only. The time this field was updated.
publisher: Option<UserInfo>
Output only. The user who published this field. This value has no meaning when the field is not published.
disabler: Option<UserInfo>
Output only. The user who disabled this field. This value has no meaning when the field is not disabled.
disable_time: Option<Timestamp>
Output only. The time this field was disabled. This value has no meaning when the field is not disabled.
lock_status: Option<LockStatus>
Output only. The LockStatus of this field.
type: Option<Type>
The data type and options of this field. Once published, the data type cannot be changed.
Trait Implementations§
source§impl Message for Field
impl Message for Field
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Field
impl PartialEq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request