pub struct LineConfig {
pub enabled: bool,
pub channel_access_token: String,
pub channel_secret: String,
pub webhook_path: String,
pub allowlist: Vec<String>,
pub rate_limit_per_second: u32,
pub enable_rich_menu: bool,
pub enable_quick_replies: bool,
}Expand description
LINE Messaging API configuration.
Fields§
§enabled: bool§channel_access_token: StringLINE Channel Access Token
channel_secret: StringLINE Channel Secret (for webhook signature verification)
webhook_path: StringWebhook path for receiving events
allowlist: Vec<String>List of allowed user IDs (empty = all allowed)
rate_limit_per_second: u32Rate limit for sending messages per second (default: 1000)
Enable rich menu support
enable_quick_replies: boolEnable quick replies
Trait Implementations§
Source§impl Clone for LineConfig
impl Clone for LineConfig
Source§fn clone(&self) -> LineConfig
fn clone(&self) -> LineConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 LineConfig
impl Debug for LineConfig
Source§impl<'de> Deserialize<'de> for LineConfig
impl<'de> Deserialize<'de> for LineConfig
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 LineConfig
impl RefUnwindSafe for LineConfig
impl Send for LineConfig
impl Sync for LineConfig
impl Unpin for LineConfig
impl UnsafeUnpin for LineConfig
impl UnwindSafe for LineConfig
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