pub trait ShareLinkIssuer {
// Required methods
fn create_link(
&mut self,
scope: ShareScope,
expires_at: Option<String>,
passphrase: Option<&str>,
) -> Result<ShareLink, SharingError>;
fn revoke_link(&mut self, link: ShareLinkId) -> Result<(), SharingError>;
}Expand description
Issues and revokes view-only share links on a trusted client — the seam
lifecycle::Workspace implements. Issuance encapsulates the scope’s decryption
material around a fresh link secret; the optional passphrase adds the second,
client-side-unwrapped encapsulation layer.
Required Methods§
Sourcefn create_link(
&mut self,
scope: ShareScope,
expires_at: Option<String>,
passphrase: Option<&str>,
) -> Result<ShareLink, SharingError>
fn create_link( &mut self, scope: ShareScope, expires_at: Option<String>, passphrase: Option<&str>, ) -> Result<ShareLink, SharingError>
Issue a view-only link for scope, optionally expiring and/or
passphrase-wrapped.
Sourcefn revoke_link(&mut self, link: ShareLinkId) -> Result<(), SharingError>
fn revoke_link(&mut self, link: ShareLinkId) -> Result<(), SharingError>
Revoke a link; the serve path refuses it within its fail-closed cache window.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".