pub enum MetadataTarget {
Metadata,
File(String),
UserJson(String),
RootUserJson(ItemIdentifier),
}Expand description
Metadata write target for the MDAPI write endpoint.
Variants§
Metadata
Update the item-level metadata object.
File(String)
Update metadata for a specific file entry.
UserJson(String)
Update a named user JSON document; persisted by IA as
{identifier}_{name}.json.
RootUserJson(ItemIdentifier)
Update the unnamed root user JSON document; persisted by IA as
{identifier}.json. The wire-level target value sent to MDAPI is the
item identifier itself (an empty string would be rejected with
Target name '' not supported).
Trait Implementations§
Source§impl Clone for MetadataTarget
impl Clone for MetadataTarget
Source§fn clone(&self) -> MetadataTarget
fn clone(&self) -> MetadataTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetadataTarget
impl Debug for MetadataTarget
Source§impl PartialEq for MetadataTarget
impl PartialEq for MetadataTarget
Source§fn eq(&self, other: &MetadataTarget) -> bool
fn eq(&self, other: &MetadataTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MetadataTarget
impl StructuralPartialEq for MetadataTarget
Auto Trait Implementations§
impl Freeze for MetadataTarget
impl RefUnwindSafe for MetadataTarget
impl Send for MetadataTarget
impl Sync for MetadataTarget
impl Unpin for MetadataTarget
impl UnsafeUnpin for MetadataTarget
impl UnwindSafe for MetadataTarget
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
Mutably borrows from an owned value. Read more