pub struct SectionDef {
pub id: &'static str,
pub kind: ItemKind,
pub title: &'static str,
pub query: &'static str,
pub repos_only: bool,
}Expand description
One gh-dash-style section: a saved GitHub search.
Fields§
§id: &'static strStable, URL-safe.
kind: ItemKind§title: &'static str§query: &'static strGitHub search query; @me resolves to the account.
repos_only: boolThe section searches only the repositories it is given, and is empty without any: it has no account qualifier of its own.
Trait Implementations§
Source§impl Clone for SectionDef
impl Clone for SectionDef
impl Copy for SectionDef
Source§impl Debug for SectionDef
impl Debug for SectionDef
impl Eq for SectionDef
Source§impl PartialEq for SectionDef
impl PartialEq for SectionDef
Source§impl Serialize for SectionDef
impl Serialize for SectionDef
impl StructuralPartialEq for SectionDef
Auto Trait Implementations§
impl Forget for SectionDef
impl Freeze for SectionDef
impl Move for SectionDef
impl RefUnwindSafe for SectionDef
impl Send for SectionDef
impl Sync for SectionDef
impl Unpin for SectionDef
impl UnsafeUnpin for SectionDef
impl UnwindSafe for SectionDef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.