Struct google_api_proto::google::cloud::contentwarehouse::v1::PropertyDefinition
source · pub struct PropertyDefinition {
pub name: String,
pub display_name: String,
pub is_repeatable: bool,
pub is_filterable: bool,
pub is_searchable: bool,
pub is_metadata: bool,
pub is_required: bool,
pub retrieval_importance: i32,
pub schema_sources: Vec<SchemaSource>,
pub value_type_options: Option<ValueTypeOptions>,
}
Expand description
Defines the metadata for a schema property.
Fields§
§name: String
Required. The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .
display_name: String
The display-name for the property, used for front-end.
is_repeatable: bool
Whether the property can have multiple values.
is_filterable: bool
Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
is_searchable: bool
Indicates that the property should be included in a global search.
is_metadata: bool
Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.
is_required: bool
Whether the property is mandatory. Default is ‘false’, i.e. populating property value can be skipped. If ‘true’ then user must populate the value for this property.
retrieval_importance: i32
The retrieval importance of the property during search.
schema_sources: Vec<SchemaSource>
The mapping information between this property to another schema source.
value_type_options: Option<ValueTypeOptions>
Type of the property.
Implementations§
source§impl PropertyDefinition
impl PropertyDefinition
sourcepub fn retrieval_importance(&self) -> RetrievalImportance
pub fn retrieval_importance(&self) -> RetrievalImportance
Returns the enum value of retrieval_importance
, or the default if the field is set to an invalid enum value.
sourcepub fn set_retrieval_importance(&mut self, value: RetrievalImportance)
pub fn set_retrieval_importance(&mut self, value: RetrievalImportance)
Sets retrieval_importance
to the provided enum value.
Trait Implementations§
source§impl Clone for PropertyDefinition
impl Clone for PropertyDefinition
source§fn clone(&self) -> PropertyDefinition
fn clone(&self) -> PropertyDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PropertyDefinition
impl Debug for PropertyDefinition
source§impl Default for PropertyDefinition
impl Default for PropertyDefinition
source§impl Message for PropertyDefinition
impl Message for PropertyDefinition
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 PropertyDefinition
impl PartialEq for PropertyDefinition
source§fn eq(&self, other: &PropertyDefinition) -> bool
fn eq(&self, other: &PropertyDefinition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PropertyDefinition
Auto Trait Implementations§
impl Freeze for PropertyDefinition
impl RefUnwindSafe for PropertyDefinition
impl Send for PropertyDefinition
impl Sync for PropertyDefinition
impl Unpin for PropertyDefinition
impl UnwindSafe for PropertyDefinition
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