pub struct Config {
pub proxy: Option<Proxy>,
pub authentication: Authentication,
pub paid: bool,
pub conversation_id: Option<String>,
}
Fields§
§proxy: Option<Proxy>
§authentication: Authentication
§paid: bool
§conversation_id: Option<String>
Implementations§
source§impl Config
impl Config
sourcepub fn from_file(filepath: &Path) -> Self
pub fn from_file(filepath: &Path) -> Self
Examples found in repository?
More examples
pub fn with_session_token(self, session_token: String) -> Self
pub fn with_access_token(self, access_token: String) -> Self
pub fn with_email_password(self, email: String, password: String) -> Self
pub fn with_paid(self, paid: bool) -> Self
pub fn with_conversation_id(self, conversation_id: String) -> Self
pub fn with_proxy(self, proxy: Proxy) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more