pub struct FileManager {
    pub client: Client,
}

Fields

client: Client

Implementations

List stored files.

This function performs a GET to the /file-manager/files endpoint.

Get a list of available images and files stored in the File Manager for the account.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • type_: &str – The file type for the File Manager file.
  • created_by: &str – The Mailchimp account user who created the File Manager file.
  • before_created_at: &str – Restrict the response to files created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • since_created_at: &str – Restrict the response to files created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • sort_field: crate::types::GetFileManagerFilesSortField – Returns files sorted by the specified field.
  • sort_dir: crate::types::SortDir – Determines the order direction for sorted results.

Add file.

This function performs a POST to the /file-manager/files endpoint.

Upload a new image or file to the File Manager.

Get file.

This function performs a GET to the /file-manager/files/{file_id} endpoint.

Get information about a specific file in the File Manager.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • file_id: &str – The unique id for the File Manager file.

Delete file.

This function performs a DELETE to the /file-manager/files/{file_id} endpoint.

Remove a specific file from the File Manager.

Parameters:

  • file_id: &str – The unique id for the File Manager file.

Update file.

This function performs a PATCH to the /file-manager/files/{file_id} endpoint.

Update a file in the File Manager.

Parameters:

  • file_id: &str – The unique id for the File Manager file.

List folders.

This function performs a GET to the /file-manager/folders endpoint.

Get a list of all folders in the File Manager.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • created_by: &str – The Mailchimp account user who created the File Manager file.
  • before_created_at: &str – Restrict the response to files created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • since_created_at: &str – Restrict the response to files created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Add folder.

This function performs a POST to the /file-manager/folders endpoint.

Create a new folder in the File Manager.

Get folder.

This function performs a GET to the /file-manager/folders/{folder_id} endpoint.

Get information about a specific folder in the File Manager.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • folder_id: &str – The unique id for the File Manager folder.

Delete folder.

This function performs a DELETE to the /file-manager/folders/{folder_id} endpoint.

Delete a specific folder in the File Manager.

Parameters:

  • folder_id: &str – The unique id for the File Manager folder.

Update folder.

This function performs a PATCH to the /file-manager/folders/{folder_id} endpoint.

Update a specific File Manager folder.

Parameters:

  • folder_id: &str – The unique id for the File Manager folder.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more