pub struct WebDavProperties {
pub uri: String,
pub shared_secret: Option<String>,
pub permissions: Vec<WebDavPermissions>,
pub requirements: Vec<WebDavRequirements>,
}
Fields§
§uri: String
An URI to access the remote resource. The URI SHOULD be
relative,
such as a key or a UUID, in which case the prefix exposed by the
/.well-known/ocm
endpoint MUST be used to access the resource,
or it MAY be absolute, including a hostname. The latter is NOT
recommended because of security concerns.
In all cases, for a folder
resource, the composed URI acts
as the root path, such that other files located within SHOULD
be accessible by appending their relative path to that URI.
An optional secret to be used to access the resource, such
as
a bearer token. If a code
is provided, it SHOULD be used
instead via the code flow interaction, and the sharedSecret
SHOULD be omitted. To prevent leaking it in logs it MUST NOT
appear in any URI.
permissions: Vec<WebDavPermissions>
The permissions granted to the sharee.
requirements: Vec<WebDavRequirements>
A list of requirements that the recipient provider MUST fulfill to access the resource. Requirements are optional, but if it is present it MUST NOT be empty. A recipient provider MUST reject a share whose requirements it does not understand.
Trait Implementations§
Source§impl Clone for WebDavProperties
impl Clone for WebDavProperties
Source§fn clone(&self) -> WebDavProperties
fn clone(&self) -> WebDavProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more