Struct dropbox_sdk::file_properties::PropertyFieldTemplate
source · [−]#[non_exhaustive]pub struct PropertyFieldTemplate {
pub name: String,
pub description: String,
pub type_field: PropertyType,
}
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
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Key of the property field being described. Property field keys can be up to 256 bytes.
description: String
Description of the property field. Property field descriptions can be up to 1024 bytes.
type_field: PropertyType
Data 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 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more