Struct dropbox_sdk::file_properties::PropertyFieldTemplate
source · [−]#[non_exhaustive]pub struct PropertyFieldTemplate {
pub name: String,
pub description: String,
pub type_field: PropertyType,
}Available on crate feature
dbx_file_properties only.Expand description
Defines how a single property field may be structured. Used exclusively by
PropertyGroupTemplate.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringKey of the property field being described. Property field keys can be up to 256 bytes.
description: StringDescription of the property field. Property field descriptions can be up to 1024 bytes.
type_field: PropertyTypeData type of the value of this property field. This type will be enforced upon property creation and modifications.
Implementations
sourceimpl PropertyFieldTemplate
impl PropertyFieldTemplate
pub fn new(name: String, description: String, type_field: PropertyType) -> Self
Trait Implementations
sourceimpl Clone for PropertyFieldTemplate
impl Clone for PropertyFieldTemplate
sourcefn clone(&self) -> PropertyFieldTemplate
fn clone(&self) -> PropertyFieldTemplate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PropertyFieldTemplate
impl Debug for PropertyFieldTemplate
sourceimpl<'de> Deserialize<'de> for PropertyFieldTemplate
impl<'de> Deserialize<'de> for PropertyFieldTemplate
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PropertyFieldTemplate> for PropertyFieldTemplate
impl PartialEq<PropertyFieldTemplate> for PropertyFieldTemplate
sourcefn eq(&self, other: &PropertyFieldTemplate) -> bool
fn eq(&self, other: &PropertyFieldTemplate) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PropertyFieldTemplate) -> bool
fn ne(&self, other: &PropertyFieldTemplate) -> bool
This method tests for !=.
sourceimpl Serialize for PropertyFieldTemplate
impl Serialize for PropertyFieldTemplate
impl Eq for PropertyFieldTemplate
impl StructuralEq for PropertyFieldTemplate
impl StructuralPartialEq for PropertyFieldTemplate
Auto Trait Implementations
impl RefUnwindSafe for PropertyFieldTemplate
impl Send for PropertyFieldTemplate
impl Sync for PropertyFieldTemplate
impl Unpin for PropertyFieldTemplate
impl UnwindSafe for PropertyFieldTemplate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more