pub struct GithubSearchReq {
pub limit: Option<i32>,
pub q: Option<String>,
}Fields§
§limit: Option<i32>Limit caps the answer; 0 takes the default and anything above the ceiling is clamped rather than refused.
q: Option<String>Q is GitHub’s own search syntax, passed through: "tetris language:go", "org:hanzoai stars:>10". Passing it through rather than inventing a vocabulary means one thing to learn, and it is theirs.
Implementations§
Source§impl GithubSearchReq
impl GithubSearchReq
pub fn new() -> GithubSearchReq
Trait Implementations§
Source§impl Clone for GithubSearchReq
impl Clone for GithubSearchReq
Source§fn clone(&self) -> GithubSearchReq
fn clone(&self) -> GithubSearchReq
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 GithubSearchReq
impl Debug for GithubSearchReq
Source§impl Default for GithubSearchReq
impl Default for GithubSearchReq
Source§fn default() -> GithubSearchReq
fn default() -> GithubSearchReq
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GithubSearchReq
impl<'de> Deserialize<'de> for GithubSearchReq
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
Source§impl PartialEq for GithubSearchReq
impl PartialEq for GithubSearchReq
Source§impl Serialize for GithubSearchReq
impl Serialize for GithubSearchReq
impl StructuralPartialEq for GithubSearchReq
Auto Trait Implementations§
impl Freeze for GithubSearchReq
impl RefUnwindSafe for GithubSearchReq
impl Send for GithubSearchReq
impl Sync for GithubSearchReq
impl Unpin for GithubSearchReq
impl UnsafeUnpin for GithubSearchReq
impl UnwindSafe for GithubSearchReq
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