Type Alias LibraryAddResourceBuilder

Source
pub type LibraryAddResourceBuilder<'a> = MusicRequestBuilder<'a, LibraryBuilder, HashMap<&'static str, HashSet<String>>>;
Expand description

Library add resource builder

Aliased Type§

pub struct LibraryAddResourceBuilder<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> LibraryAddResourceBuilder<'a>

Source

pub fn new() -> LibraryAddResourceBuilder<'a>

Create a new LibraryAddResourceBuilder instance

Source

pub fn add_resource(self, resource: &Resource) -> Result<Self, Error>

Add a resource to the library

Source

pub fn add_resources(self, resources: &[Resource]) -> Result<Self, Error>

Add multiple resources to the library

Source

pub async fn send(self, client: &ApiClient) -> Result<Vec<Resource>, Error>

Send the request