pub struct NewShare {Show 13 fields
pub share_with: OcmAddress,
pub name: String,
pub description: Option<String>,
pub provider_id: String,
pub owner: OcmAddress,
pub sender: OcmAddress,
pub owner_display_name: Option<String>,
pub sender_display_name: Option<String>,
pub share_type: ShareType,
pub resource_type: String,
pub expiration: Option<i64>,
pub code: Option<String>,
pub protocol: Protocol,
}
Fields§
Consumer specific identifier of the user, group or federation the provider wants to share the resource with. This is known in advance. Please note that the consumer service endpoint is known in advance as well, so this is no part of the request body. example: 51dc30ddc473d43a6011e9ebba6ca770@geant.org
name: String
Name of the resource (file or folder). example: resource.txt
description: Option<String>
Optional description of the resource (file or folder).
provider_id: String
Identifier to identify the shared resource at the provider side. This is unique per provider such that if the same resource is shared twice, this providerId will not be repeated.
example: 7c084226-d9a1-11e6-bf26-cec0c932ce01
owner: OcmAddress
Provider specific identifier of the user who owns the resource.
example: 6358b71804dfa8ab069cf05ed1b0ed2a@apiwise.nl
sender: OcmAddress
Provider specific identifier of the user that wants to share the
resource. Please note that the requesting provider is being
identified on a higher level, so the former remote
property
is not part of the request body.
example: 527bd5b5d689e2c32ae974c6229ff785@apiwise.nl
owner_display_name: Option<String>
Display name of the owner of the resource example: Dimitri
sender_display_name: Option<String>
Display name of the user that wants to share the resource example: John Doe
Recipient share type
resource_type: String
Resource type (file, calendar, contact, …) example: file
expiration: Option<i64>
The expiration time for the share, in seconds of UTC time since Unix epoch. If omitted, it is assumed that the share does not expire.
code: Option<String>
A nonce to be exchanged for a (potentially short-lived) bearer token
at the Sending Server’s /token
endpoint.
protocol: Protocol
Implementations§
Sourcepub fn sending_server(&self) -> SendingServer
pub fn sending_server(&self) -> SendingServer
Get the Sending Server from the sender of the share.