pub struct QueryOptions {Show 34 fields
pub page: Option<i64>,
pub per_page: Option<i64>,
pub state: Option<String>,
pub sort: Option<String>,
pub direction: Option<String>,
pub order: Option<String>,
pub type: Option<String>,
pub scope: Option<String>,
pub q: Option<String>,
pub git_ref: Option<String>,
pub sha: Option<String>,
pub path: Option<String>,
pub branch: Option<String>,
pub tag: Option<String>,
pub base: Option<String>,
pub head: Option<String>,
pub recursive: Option<bool>,
pub draft: Option<bool>,
pub labels: Option<String>,
pub milestones: Option<String>,
pub assigned_by: Option<String>,
pub mentioned_by: Option<String>,
pub created_by: Option<String>,
pub author: Option<String>,
pub committer: Option<String>,
pub since: Option<String>,
pub until: Option<String>,
pub before: Option<String>,
pub affiliation: Option<String>,
pub permission: Option<String>,
pub not: Option<String>,
pub name: Option<String>,
pub pre_release: Option<bool>,
pub encrypted_value: Option<String>,
}Expand description
Опции для запросов с пагинацией и фильтрацией
Fields§
§page: Option<i64>Номер страницы
per_page: Option<i64>Количество элементов на странице
state: Option<String>Фильтр по состоянию
sort: Option<String>Сортировка
direction: Option<String>Направление сортировки
order: Option<String>Порядок
type: Option<String>Тип
scope: Option<String>Область поиска
q: Option<String>Поисковый запрос
git_ref: Option<String>Git ref
sha: Option<String>SHA коммита
path: Option<String>Путь к файлу
branch: Option<String>Ветка
tag: Option<String>Тег
base: Option<String>Базовая ветка
head: Option<String>Целевая ветка
recursive: Option<bool>Рекурсивный поиск
draft: Option<bool>Фильтр по черновикам
labels: Option<String>Метки
milestones: Option<String>Милестоуны
assigned_by: Option<String>Назначен
mentioned_by: Option<String>Упомянут
created_by: Option<String>Создан
Автор
committer: Option<String>Коммиттер
since: Option<String>Дата начала
until: Option<String>Дата окончания
before: Option<String>До даты
affiliation: Option<String>Принадлежность
permission: Option<String>Права доступа
not: Option<String>Исключение
name: Option<String>Имя
pre_release: Option<bool>Пре-релиз
encrypted_value: Option<String>Зашифрованное значение
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
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 QueryOptions
impl Debug for QueryOptions
Source§impl Default for QueryOptions
impl Default for QueryOptions
Source§fn default() -> QueryOptions
fn default() -> QueryOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryOptions
impl<'de> Deserialize<'de> for QueryOptions
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
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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