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>
impl<'a> LibraryAddResourceBuilder<'a>
Sourcepub fn new() -> LibraryAddResourceBuilder<'a>
pub fn new() -> LibraryAddResourceBuilder<'a>
Create a new LibraryAddResourceBuilder
instance
Sourcepub fn add_resource(self, resource: &Resource) -> Result<Self, Error>
pub fn add_resource(self, resource: &Resource) -> Result<Self, Error>
Add a resource to the library
Sourcepub fn add_resources(self, resources: &[Resource]) -> Result<Self, Error>
pub fn add_resources(self, resources: &[Resource]) -> Result<Self, Error>
Add multiple resources to the library