pub struct ObjectType {Show 17 fields
pub url: String,
pub name: String,
pub relation_links: Vec<RelationLink>,
pub layout: i32,
pub icon_emoji: String,
pub description: String,
pub hidden: bool,
pub readonly: bool,
pub types: Vec<i32>,
pub is_archived: bool,
pub installed_by_default: bool,
pub key: String,
pub revision: i64,
pub restrict_object_creation: bool,
pub icon_color: i64,
pub icon_name: String,
pub plural_name: String,
}Fields§
§url: Stringleave empty in case you want to create the new one
name: Stringname of objectType in singular form (can be localized for bundled types)
relation_links: Vec<RelationLink>cannot contain more than one Relation with the same RelationType
layout: i32§icon_emoji: Stringemoji symbol
description: String§readonly: bool§types: Vec<i32>§is_archived: boolsets locally to hide object type from set and some other places
installed_by_default: bool§key: Stringname of objectType (can be localized for bundled types)
revision: i64revision of system objectType. Used to check if we should change type content or not
restrict_object_creation: boolrestricts creating objects of this type for users
icon_color: i64color of object type icon
icon_name: Stringname of object type icon
plural_name: Stringname of objectType in plural form (can be localized for bundled types)
Implementations§
Source§impl ObjectType
impl ObjectType
Sourcepub fn layout(&self) -> Layout
pub fn layout(&self) -> Layout
Returns the enum value of layout, or the default if the field is set to an invalid enum value.
Sourcepub fn set_layout(&mut self, value: Layout)
pub fn set_layout(&mut self, value: Layout)
Sets layout to the provided enum value.
Sourcepub fn types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SmartBlockType>>
pub fn types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SmartBlockType>>
Returns an iterator which yields the valid enum values contained in types.
Sourcepub fn push_types(&mut self, value: SmartBlockType)
pub fn push_types(&mut self, value: SmartBlockType)
Appends the provided enum value to types.
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectType
impl Debug for ObjectType
Source§impl Default for ObjectType
impl Default for ObjectType
Source§impl Message for ObjectType
impl Message for ObjectType
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 ObjectType
impl PartialEq for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnsafeUnpin for ObjectType
impl UnwindSafe for ObjectType
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> 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