pub struct MetaConfig {
pub access_token: Option<String>,
pub app_secret: Option<String>,
pub ad_account_id: Option<String>,
pub page_id: Option<String>,
pub ig_user_id: Option<String>,
pub api_version: Option<String>,
}Expand description
Meta (Facebook/Instagram) provider configuration.
Fields§
§access_token: Option<String>User access token (overridden by MKT_META_ACCESS_TOKEN env var).
app_secret: Option<String>App secret enabling appsecret_proof on every Graph API call
(overridden by MKT_META_APP_SECRET env var). Optional: only
needed when the app has “Require App Secret” enabled.
ad_account_id: Option<String>Ad account ID (e.g. act_123456789).
page_id: Option<String>Facebook Page ID for organic posts.
ig_user_id: Option<String>Instagram user ID for IG publishing.
api_version: Option<String>API version override (default: “v25.0”).
Trait Implementations§
Source§impl Clone for MetaConfig
impl Clone for MetaConfig
Source§fn clone(&self) -> MetaConfig
fn clone(&self) -> MetaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetaConfig
impl Debug for MetaConfig
Source§impl<'de> Deserialize<'de> for MetaConfig
impl<'de> Deserialize<'de> for MetaConfig
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 MetaConfig
impl RefUnwindSafe for MetaConfig
impl Send for MetaConfig
impl Sync for MetaConfig
impl Unpin for MetaConfig
impl UnsafeUnpin for MetaConfig
impl UnwindSafe for MetaConfig
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