pub struct SegmentBuilder { /* private fields */ }Implementations§
Source§impl SegmentBuilder
impl SegmentBuilder
pub fn new() -> Self
pub fn build(self) -> Vec<SendSegment>
pub fn text(self, text: String) -> Self
pub fn face(self, id: String) -> Self
pub fn image( self, file: String, image_type: Option<String>, cache: Option<bool>, proxy: Option<bool>, timeout: Option<bool>, ) -> Self
pub fn record( self, file: String, magic: String, cache: Option<bool>, proxy: Option<bool>, timeout: Option<bool>, ) -> Self
pub fn video( self, file: String, cache: Option<bool>, proxy: Option<bool>, timeout: Option<bool>, ) -> Self
pub fn at(self, qq: String) -> Self
pub fn rps(self) -> Self
pub fn dice(self) -> Self
pub fn shake(self) -> Self
pub fn poke(self, poke_type: String, id: String) -> Self
pub fn anonymous(self, ignore: Option<bool>) -> Self
pub fn contact(self, contact_type: String, id: String) -> Self
pub fn contact_qq(self, id: String) -> Self
pub fn contact_group(self, id: String) -> Self
pub fn location( self, lat: String, lon: String, title: Option<String>, content: Option<String>, ) -> Self
pub fn music( self, music_type: String, id: Option<String>, url: Option<String>, audio: Option<String>, title: Option<String>, content: Option<String>, image: Option<String>, ) -> Self
pub fn music_typed(self, music_type: String, id: String) -> Self
pub fn music_qq(self, id: String) -> Self
pub fn music_163(self, id: String) -> Self
pub fn music_xm(self, id: String) -> Self
pub fn music_custom( self, url: String, audio: String, title: String, content: String, image: String, ) -> Self
pub fn reply(self, id: String) -> Self
pub fn forward(self) -> Self
pub fn node( self, id: Option<String>, user_id: Option<String>, nickname: Option<String>, content: Option<Vec<SendSegment>>, ) -> Self
pub fn node_forward(self, id: String) -> Self
pub fn node_custom( self, user_id: String, nickname: String, content: Vec<SendSegment>, ) -> Self
pub fn xml(self, data: String) -> Self
pub fn json(self, data: String) -> Self
Trait Implementations§
Source§impl Clone for SegmentBuilder
impl Clone for SegmentBuilder
Source§fn clone(&self) -> SegmentBuilder
fn clone(&self) -> SegmentBuilder
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 SegmentBuilder
impl Debug for SegmentBuilder
Source§impl Default for SegmentBuilder
impl Default for SegmentBuilder
Source§fn default() -> SegmentBuilder
fn default() -> SegmentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SegmentBuilder
impl RefUnwindSafe for SegmentBuilder
impl Send for SegmentBuilder
impl Sync for SegmentBuilder
impl Unpin for SegmentBuilder
impl UnwindSafe for SegmentBuilder
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