pub struct UrlBuilder;
Expand description
A struct, that helps building URLs for communicating with a remote host.
Implementations§
Source§impl UrlBuilder
impl UrlBuilder
Sourcepub fn download(file: &RemoteFile, secret: bool) -> Url
pub fn download(file: &RemoteFile, secret: bool) -> Url
Get the download URL of the given file.
This URL is identical to the share URL, a term used in this API.
Set secret
to true
, to include it in the URL if known.
Sourcepub fn api_metadata(file: &RemoteFile) -> Url
pub fn api_metadata(file: &RemoteFile) -> Url
Get the API metadata URL for the given file.
Sourcepub fn api_download(file: &RemoteFile) -> Url
pub fn api_download(file: &RemoteFile) -> Url
Get the API download URL for the given file.
Sourcepub fn api_password(file: &RemoteFile) -> Url
pub fn api_password(file: &RemoteFile) -> Url
Get the API password URL for the given file.
Sourcepub fn api_params(file: &RemoteFile) -> Url
pub fn api_params(file: &RemoteFile) -> Url
Get the API params URL for the given file.
Sourcepub fn api_info(file: &RemoteFile) -> Url
pub fn api_info(file: &RemoteFile) -> Url
Get the API info URL for the given file.
Sourcepub fn api_exists(file: &RemoteFile) -> Url
pub fn api_exists(file: &RemoteFile) -> Url
Get the API exists URL for the given file.
Sourcepub fn api_delete(file: &RemoteFile) -> Url
pub fn api_delete(file: &RemoteFile) -> Url
Get the API delete URL for the given file.
Auto Trait Implementations§
impl Freeze for UrlBuilder
impl RefUnwindSafe for UrlBuilder
impl Send for UrlBuilder
impl Sync for UrlBuilder
impl Unpin for UrlBuilder
impl UnwindSafe for UrlBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more