Expand description
Salesforce Pub/Sub API client for Rust.
This crate provides a gRPC client for the Salesforce Pub/Sub API, supporting subscribe, publish, and schema operations.
Modules§
- proto
- Generated protobuf types from the Salesforce Pub/Sub API proto.
Structs§
- Backoff
Config - Exponential backoff with configurable parameters.
- Event
Message - A decoded event received from the subscribe stream.
- PubSub
Config - Configuration for the Pub/Sub client.
- PubSub
Handler - Entry point for all Salesforce Pub/Sub operations.
- Publish
Response - Response from a publish operation.
- Publish
Result - Per-event result from a publish operation.
- Publish
Sink - A bidirectional streaming publish sink for the Salesforce Pub/Sub API.
- Replay
Id - Opaque replay cursor. Consumers store and pass back; never interpret the bytes.
- Schema
Cache - Fetches and caches Avro schemas by schema ID.
- Schema
Info - Public-facing schema metadata.
- Topic
Info - Public-facing topic metadata (mirrors proto without leaking generated types).
Enums§
- PubSub
Error - All errors from the force-pubsub crate.
- PubSub
Event - Items yielded by the subscribe stream.
- Reconnect
Policy - Controls reconnection behaviour when the subscribe stream drops.
- Replay
Preset - Where to start replaying events when subscribing.
Functions§
- decode_
avro_ typed - Decode Avro-binary bytes directly into a typed struct
Tusing the given schema. - encode_
avro - Encode a serializable value to Avro binary using the given schema.
Type Aliases§
- Result
- Convenience Result alias for Pub/Sub operations.