Expand description
Validated outbound share services for Kael applications.
use kael_share::{ShareSheet, ShareType};
let sheet = ShareSheet::builder()
.subject("Release notes")
.text("Kael 0.4 is ready")
.url("https://example.com/releases/0.4")
.exclude(ShareType::Social)
.build_checked()?;
assert_eq!(sheet.item_count(), 2);
assert!(sheet.excluded().contains(&ShareType::Social));Structs§
- Platform
Share Support - Summary of the destinations the current platform backend can launch today.
- Share
File - A bounded in-memory file that can cross both native and browser share APIs.
- Share
File Type - File-type identifier used when registering as a share target.
- Share
Image - An in-memory image payload that can be materialized for sharing.
- Share
Item - A single unit of content to share through the operating system.
- Share
Receiver - Registration handle for share-target callbacks.
- Share
Sheet - A share request configured with payloads and excluded destination types.
- Share
Sheet Builder - Builder for composing a checked share sheet from common payload types.
Enums§
- Share
Error - A checked share failure that applications can handle without parsing text.
- Share
Result - The outcome reported by a share backend.
- Share
Type - High-level share destinations that a backend may support.
Functions§
- cleanup_
share_ temps - Removes stale
kael-share-*temporary directories older thanmax_age.
Type Aliases§
- Share
Operation Result - Result returned by the typed portable share API.