Function dropbox_sdk::sharing::create_shared_link [−][src]
pub fn create_shared_link(
client: &impl UserAuthClient,
arg: &CreateSharedLinkArg
) -> Result<Result<PathLinkMetadata, CreateSharedLinkError>>
👎 Deprecated:
replaced by create_shared_link_with_settings
This is supported on crate feature
dbx_sharing
only.Create a shared link. If a shared link already exists for the given path, that link is returned.
Note that in the returned PathLinkMetadata
, the
PathLinkMetadata::url
field is the shortened URL if
CreateSharedLinkArg::short_url
argument is set to true
. Previously,
it was technically possible to break a shared link by moving or renaming the corresponding file
or folder. In the future, this will no longer be the case, so your app shouldn't rely on this
behavior. Instead, if your app needs to revoke a shared link, use
revoke_shared_link()
.