pub struct AccountQuery {
pub review_requests: bool,
pub open_requests: bool,
pub assigned_issues: bool,
pub include_drafts: bool,
pub namespaces: Vec<String>,
pub namespaces_regex: bool,
pub limit: usize,
}Expand description
What to fetch for one integration.
Fields§
§review_requests: boolOpen requests that wait for my review.
open_requests: boolEvery open request of my namespaces.
assigned_issues: boolOpen issues assigned to me.
include_drafts: boolKeep draft requests too.
namespaces: Vec<String>Orgs / groups to search for open_requests; empty = my own namespace
plus every one I am a member of.
namespaces_regex: boolRead each namespace line as a regular expression over the full repository path instead of a path prefix.
limit: usizeRows kept per kind; 0 = DEFAULT_LIMIT.
Implementations§
Source§impl AccountQuery
impl AccountQuery
Sourcepub fn search_namespaces(&self) -> &[String]
pub fn search_namespaces(&self) -> &[String]
The namespaces a host’s own queries can be scoped to: the plain lines, none in regex mode (a pattern is not a group name; the filter on the results does the work).
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
A short stable fingerprint, so a cache entry is only reused for the same question (FNV-1a over a canonical spelling; not a security hash).
Trait Implementations§
Source§impl Clone for AccountQuery
impl Clone for AccountQuery
Source§impl Debug for AccountQuery
impl Debug for AccountQuery
Source§impl Default for AccountQuery
impl Default for AccountQuery
Source§impl<'de> Deserialize<'de> for AccountQuery
impl<'de> Deserialize<'de> for AccountQuery
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
impl Eq for AccountQuery
Source§impl PartialEq for AccountQuery
impl PartialEq for AccountQuery
Source§impl Serialize for AccountQuery
impl Serialize for AccountQuery
impl StructuralPartialEq for AccountQuery
Auto Trait Implementations§
impl Forget for AccountQuery
impl Freeze for AccountQuery
impl Move for AccountQuery
impl RefUnwindSafe for AccountQuery
impl Send for AccountQuery
impl Sync for AccountQuery
impl Unpin for AccountQuery
impl UnsafeUnpin for AccountQuery
impl UnwindSafe for AccountQuery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.