Skip to main content

Crate fabric_sdk

Crate fabric_sdk 

Source
Expand description

Rust client SDK for the Fabric platform.

This is a thin wrapper around the Fabric REST API. Every method corresponds to an endpoint under /v1/... on a running Fabric API. For the higher-level resource-oriented design, see the TypeScript SDK at sdks/typescript/ — this crate is intentionally minimal and returns serde_json::Value rather than typed models. A typed rewrite is tracked in specs/plans/031-rust-sdk-rewrite.md and the Rust SDK backlog in specs/SPRINT.md.

Re-exports§

pub use sse::SseEvent;

Modules§

sse
Server-Sent Events (SSE) streaming support.

Structs§

BundleEntry
One slot in a heterogeneous bundle submission.
FabricClient
Synchronous-style Fabric API client.
Regenerate
Hints for a regeneration run.
RunArtifact
Artifact produced by a workflow run.
RunOutput
Result of GET /v1/workflows/runs/{id}/output.
VariantOutput
A single variant’s output and artifacts within a run.

Enums§

FabricError
RegenerateDirection
Creative direction for a Regenerate run.
RegenerateKeepFlag
Aspect of the original output to preserve during regeneration.
VariantKind
Card layout shape for a variant — declared by the workflow’s WorkflowOutput.kind. Consumer UIs branch on this to pick the right rendering. None means the workflow didn’t declare a kind and consumers should fall back to deriving from artifact MIME types.

Type Aliases§

Result