rustsf 0.1.1

Salesforce SDK for Rust, supports the latest API version 68.0, (Winter 2026)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct SObjectCreateRequest<T: Serialize> {
	pub all_or_none: bool,
	pub records: Vec<T>,
}

impl<T: Serialize> SObjectCreateRequest<T> {
	pub fn new(records: Vec<T>, all_or_none: bool) -> Self {
		Self { all_or_none, records }
	}
}