pub trait Credentials: Send + Sync {
// Required methods
fn instance_url(&self) -> &str;
fn access_token(&self) -> &str;
fn api_version(&self) -> &str;
// Provided method
fn is_valid(&self) -> bool { ... }
}Expand description
Trait for Salesforce credentials.
Required Methods§
Sourcefn instance_url(&self) -> &str
fn instance_url(&self) -> &str
Get the Salesforce instance URL.
Sourcefn access_token(&self) -> &str
fn access_token(&self) -> &str
Get the access token.
Sourcefn api_version(&self) -> &str
fn api_version(&self) -> &str
Get the API version (e.g., “62.0”).
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".