pub struct Request {
pub antenna_id: Id<Antenna>,
pub name: String,
pub src: AntennaSource,
pub user_list_id: Option<Id<UserList>>,
pub user_group_id: Option<Id<UserGroup>>,
pub keywords: Query<String>,
pub exclude_keywords: Query<String>,
pub users: Vec<String>,
pub case_sensitive: bool,
pub with_replies: bool,
pub with_file: bool,
pub notify: bool,
}Fields§
§antenna_id: Id<Antenna>§name: String[ 1 .. 100 ] characters
src: AntennaSource§user_list_id: Option<Id<UserList>>§user_group_id: Option<Id<UserGroup>>Available on crate feature
§12-10-0 only.keywords: Query<String>§exclude_keywords: Query<String>Available on crate feature
§12-19-0 only.users: Vec<String>§case_sensitive: bool§with_replies: bool§with_file: bool§notify: boolImplementations§
Source§impl Request
impl Request
Sourcepub fn builder() -> RequestBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> RequestBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building Request.
On the builder, call .antenna_id(...), .name(...), .src(...), .user_list_id(...)(optional), .user_group_id(...)(optional), .keywords(...)(optional), .exclude_keywords(...)(optional), .users(...), .case_sensitive(...), .with_replies(...), .with_file(...), .notify(...) to set the values of the fields (they accept Into values).
Finally, call .build() to create the instance of Request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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