pub struct Comment { /* private fields */ }Implementations§
Source§impl Comment
impl Comment
pub fn new(api_key: String) -> Self
Sourcepub async fn send(&self, data: &CommentPost) -> Result<ResponseResult, Error>
pub async fn send(&self, data: &CommentPost) -> Result<ResponseResult, Error>
发布评论
data评论信息
返回执行结果
Sourcepub async fn update(
&self,
id: &str,
data: &CommentPost,
) -> Result<String, Error>
pub async fn update( &self, id: &str, data: &CommentPost, ) -> Result<String, Error>
更新评论
id评论 Iddata评论信息
返回评论内容 HTML
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnsafeUnpin for Comment
impl UnwindSafe for Comment
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