pub struct MetadataFieldsClient<'a>(/* private fields */);Available on crate feature
async only.Expand description
The project’s metadata fields, which share the project settings’ revision. Get it from
ServerClient::metadata_fields.
Implementations§
Source§impl MetadataFieldsClient<'_>
impl MetadataFieldsClient<'_>
Sourcepub async fn list(&self) -> Result<MetadataFieldsResource>
pub async fn list(&self) -> Result<MetadataFieldsResource>
The project’s metadata fields in display order, and the revision to send back with a change.
Sourcepub async fn ensure(
&self,
options: EnsureMetadataFields,
) -> Result<MetadataFieldsResource>
pub async fn ensure( &self, options: EnsureMetadataFields, ) -> Result<MetadataFieldsResource>
Creates each field, or replaces it with the definition sent, by ID. Other fields are kept, and new ones are added at the end. Unchanged fields keep their revision.
Sourcepub async fn delete(&self, options: DeleteMetadataField) -> Result<()>
pub async fn delete(&self, options: DeleteMetadataField) -> Result<()>
Deletes a metadata field definition. Assets keep the metadata values they hold.
Trait Implementations§
Source§impl<'a> Clone for MetadataFieldsClient<'a>
impl<'a> Clone for MetadataFieldsClient<'a>
impl<'a> Copy for MetadataFieldsClient<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MetadataFieldsClient<'a>
impl<'a> !UnwindSafe for MetadataFieldsClient<'a>
impl<'a> Forget for MetadataFieldsClient<'a>
impl<'a> Freeze for MetadataFieldsClient<'a>where
&'a ServerClient: Freeze,
impl<'a> Move for MetadataFieldsClient<'a>
impl<'a> Send for MetadataFieldsClient<'a>where
&'a ServerClient: Send,
impl<'a> Sync for MetadataFieldsClient<'a>
impl<'a> Unpin for MetadataFieldsClient<'a>where
&'a ServerClient: Unpin,
impl<'a> UnsafeUnpin for MetadataFieldsClient<'a>where
&'a ServerClient: UnsafeUnpin,
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