Skip to main content

Credentials

Trait Credentials 

Source
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§

Source

fn instance_url(&self) -> &str

Get the Salesforce instance URL.

Source

fn access_token(&self) -> &str

Get the access token.

Source

fn api_version(&self) -> &str

Get the API version (e.g., “62.0”).

Provided Methods§

Source

fn is_valid(&self) -> bool

Returns true if the credentials appear to be valid (non-empty).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§