Struct mailchimp_api::template_folders::TemplateFolders
source · pub struct TemplateFolders {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl TemplateFolders
impl TemplateFolders
sourcepub async fn get(
&self,
fields: &[String],
exclude_fields: &[String],
count: i64,
offset: i64
) -> Result<TemplateFolders>
pub async fn get(
&self,
fields: &[String],
exclude_fields: &[String],
count: i64,
offset: i64
) -> Result<TemplateFolders>
List template folders.
This function performs a GET
to the /template-folders
endpoint.
Get all folders used to organize templates.
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.
sourcepub async fn post(&self, body: &GalleryFolder) -> Result<Folders>
pub async fn post(&self, body: &GalleryFolder) -> Result<Folders>
Add template folder.
This function performs a POST
to the /template-folders
endpoint.
Create a new template folder.
sourcepub async fn get_template_folders(
&self,
fields: &[String],
exclude_fields: &[String],
folder_id: &str
) -> Result<Folders>
pub async fn get_template_folders(
&self,
fields: &[String],
exclude_fields: &[String],
folder_id: &str
) -> Result<Folders>
Get template folder.
This function performs a GET
to the /template-folders/{folder_id}
endpoint.
Get information about a specific folder used to organize templates.
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 template folder.
sourcepub async fn delete(&self, folder_id: &str) -> Result<()>
pub async fn delete(&self, folder_id: &str) -> Result<()>
Delete template folder.
This function performs a DELETE
to the /template-folders/{folder_id}
endpoint.
Delete a specific template folder, and mark all the templates in the folder as ‘unfiled’.
Parameters:
folder_id: &str
– The unique id for the template folder.
sourcepub async fn patch(
&self,
folder_id: &str,
body: &GalleryFolder
) -> Result<Folders>
pub async fn patch(
&self,
folder_id: &str,
body: &GalleryFolder
) -> Result<Folders>
Update template folder.
This function performs a PATCH
to the /template-folders/{folder_id}
endpoint.
Update a specific folder used to organize templates.
Parameters:
folder_id: &str
– The unique id for the template folder.