leash-integration-slite 0.1.0

Typed Slite integration for Leash
Documentation
  • Coverage
  • 41.67%
    15 out of 36 items documented0 out of 14 items with examples
  • Size
  • Source code size: 50.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.79 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2m 4s Average build duration of successful builds.
  • all releases: 2m 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • arvin-unleashed

leash-integration-slite

Typed Slite integration for Leash (Rust) — auto-generated by leash-codegen.

Installation

[dependencies]
leash-integration-slite = "0.1"

Usage

use leash_sdk::LeashIntegrations;
use leash_integration_slite::SliteClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let leash = LeashIntegrations::new("your-api-key");
    let client = SliteClient::new(leash);

    let result = client.search_notes().await?;
    println!("{:?}", result);
    Ok(())
}

Available Methods

  • search_notes() — Searches notes in Slite based on a query and returns the top search results.
  • ask_slite() — Asks a question to Slite and returns an answer with sources.
  • get_note() — Retrieves a specific note from Slite by its ID.
  • get_note_children() — Retrieves all child notes of a specific note from Slite.
  • create_note() — Creates a new note in Slite with the specified title and optional content.
  • update_note() — Updates an existing note in Slite. Can update the title and/or content.

License

Apache-2.0