pub struct Config {
pub tenant_id: String,
pub email: Option<HashMap<String, CommonEvent<EmailEventBody>>>,
pub push: Option<HashMap<String, CommonEvent<PushEventBody>>>,
pub automation: Option<HashMap<String, RequestEvent>>,
pub request: Option<HashMap<String, RequestEvent>>,
pub config: Option<Configuration>,
pub webhooks: HashMap<String, WebhookActionSettings>,
}Fields§
§tenant_id: String§email: Option<HashMap<String, CommonEvent<EmailEventBody>>>§push: Option<HashMap<String, CommonEvent<PushEventBody>>>§automation: Option<HashMap<String, RequestEvent>>§request: Option<HashMap<String, RequestEvent>>§config: Option<Configuration>§webhooks: HashMap<String, WebhookActionSettings>Implementations§
Source§impl Config
impl Config
pub fn get_email_actions(self) -> Vec<String>
pub fn get_template_by_email_action(self, action: String) -> String
pub fn get_expo_access_token(self) -> Result<String, TenantConfigError>
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more