pub fn add_fields<I, T>(&mut self, iter: I) -> &mut Self
    where
        I: IntoIterator<Item = T>,
        T: Into<String>,
    {
        let str_fields: Vec<String> = iter.into_iter().map(Into::into).collect();
        self.fields.extend(str_fields);
        self
    }
/// Adds several fields for this request by using an Iterator object
/// # Examples
/// ```
/// use igdb_rs::client::IGDBClient;
///
/// let mut request = IGDBClient::create_request();
/// request
/// .add_fields(vec!["description", "name", "summary"])
/// .contains("name", "Mass Effect");
/// ```
Adds several fields for this request by using an Iterator object
Adds several fields for this request by using an Iterator object
pub fn add_fields<I, T>(&mut self, iter: I) -> &mut Self
    where
        I: IntoIterator<Item = T>,
        T: Into<String>,
    {
        let str_fields: Vec<String> = iter.into_iter().map(Into::into).collect();
        self.fields.extend(str_fields);
        self
    }
pub fn add_fields < I , T > ( & mut self , iter : I ) -> & mut Self where I : IntoIterator < Item = T > , T : Into < String > , { let str_fields : Vec < String > = iter . into_iter ( ) . map ( Into :: into ) . collect ( ) ; self . fields . extend ( str_fields ) ; self }
Adds several fields for this request by using an Iterator object
Adds several fields for this request by using an Iterator object
&mut self
iter
I
&mut self
iter
I
examples
```
use igdb_rs::client::IGDBClient.

let mut request = IGDBClient::create_request();
request
.add_fields(vec!["description", "name", "summary"])
.contains("name", "Mass Effect");
```
` ` ` use igdb_rs :: client :: IGDBClient . let mut request = IGDBClient :: create_request () ; request . add_fields ( vec! [ " description " " name " " summary " ] ) . contains ( " name " " Mass Effect " ) ; ` ` `