Struct dropbox_sdk::file_properties::PropertyGroupUpdate[][src]

#[non_exhaustive]pub struct PropertyGroupUpdate {
    pub template_id: TemplateId,
    pub add_or_update_fields: Option<Vec<PropertyField>>,
    pub remove_fields: Option<Vec<String>>,
}
This is supported on crate feature dbx_file_properties only.

Fields (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.
template_id: TemplateId

A unique identifier for a property template.

add_or_update_fields: Option<Vec<PropertyField>>

Property fields to update. If the property field already exists, it is updated. If the property field doesn't exist, the property group is added.

remove_fields: Option<Vec<String>>

Property fields to remove (by name), provided they exist.

Implementations

impl PropertyGroupUpdate[src]

pub fn new(template_id: TemplateId) -> Self[src]

pub fn with_add_or_update_fields(self, value: Vec<PropertyField>) -> Self[src]

pub fn with_remove_fields(self, value: Vec<String>) -> Self[src]

Trait Implementations

impl Clone for PropertyGroupUpdate[src]

impl Debug for PropertyGroupUpdate[src]

impl<'de> Deserialize<'de> for PropertyGroupUpdate[src]

impl PartialEq<PropertyGroupUpdate> for PropertyGroupUpdate[src]

impl Serialize for PropertyGroupUpdate[src]

impl StructuralPartialEq for PropertyGroupUpdate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.