pub fn new(url: &str, cache_subdir: &str) -> RemoteResource {
        RemoteResource {
            url: url.to_string(),
            cache_subdir: cache_subdir.to_string(),
        }
    }
/// Creates a new RemoteResource from an URL and a custom local path. Note that this does not
/// download the resource (only declares the remote and local locations)
///
/// # Arguments
///
/// * `url` - `&str` Location of the remote resource
/// * `cache_subdir` - `&str` Local subdirectory of the cache root to save the resource to
///
/// # Returns
///
/// * `RemoteResource` RemoteResource object
///
/// # Example
///
/// ```no_run
/// use rust_bert::resources::{RemoteResource, Resource};
/// let config_resource = Resource::Remote(RemoteResource::new(
///     "http://config_json_location",
///     "configs",
/// ));
/// ```
Creates a new RemoteResource from an URL and a custom local path. Note that this does not
download the resource (only declares the remote and local locations)
Creates a new RemoteResource from an URL and a custom local path . Note that this does not download the resource ( only declares the remote and local locations )
pub fn new(url: &str, cache_subdir: &str) -> RemoteResource {
        RemoteResource {
            url: url.to_string(),
            cache_subdir: cache_subdir.to_string(),
        }
    }
pub fn new ( url : & str , cache_subdir : & str ) -> RemoteResource { RemoteResource { url : url . to_string ( ) , cache_subdir : cache_subdir . to_string ( ) , } }
Creates a new RemoteResource from an URL and a custom local path.
Creates a new RemoteResource from an URL and a custom local path .
url
&str
cache_subdir
&str
`RemoteResource` RemoteResource object
` RemoteResource ` RemoteResource object
url
&str
cache_subdir
&str
example
None