pub struct WebAppProperties {
pub uri: String,
pub view_mode: WebAppViewMode,
pub shared_secret: Option<String>,
}Fields§
§uri: StringAn URI to a client-browsable view of the remote resource,
such that
users may use a web application available at the sender site.
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.
view_mode: WebAppViewModeThe permissions granted to the sharee.
An optional secret to be used to access the remote web
app, such as
a bearer token. To prevent leaking it in logs it MUST NOT appear
in any URI. If a code is provided, then the sending host MUST
accept the short-lived bearer token when serving the web app,
which can be exchanged in the code flow interaction. The exchange
MAY already have happened if the recipient accessed the underlying
resource via WebDAV, in a multi-protocol scenario. In this case,
the sharedSecret SHOULD be omitted.
Trait Implementations§
Source§impl Clone for WebAppProperties
impl Clone for WebAppProperties
Source§fn clone(&self) -> WebAppProperties
fn clone(&self) -> WebAppProperties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WebAppProperties
impl Debug for WebAppProperties
Source§impl<'de> Deserialize<'de> for WebAppProperties
impl<'de> Deserialize<'de> for WebAppProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for WebAppProperties
Source§impl PartialEq for WebAppProperties
impl PartialEq for WebAppProperties
Source§fn eq(&self, other: &WebAppProperties) -> bool
fn eq(&self, other: &WebAppProperties) -> bool
self and other values to be equal, and is used by ==.