pub struct QueryListItem {
pub id: u64,
pub name: String,
pub is_public: bool,
pub project_id: Option<u64>,
}Expand description
a type for query list items to use as an API return type
alternatively you can use your own type limited to the fields you need
Fields§
§id: u64numeric id
name: Stringdisplay name
is_public: boolis the query public
project_id: Option<u64>the project for project-specific queries
Trait Implementations§
Source§impl Clone for QueryListItem
impl Clone for QueryListItem
Source§fn clone(&self) -> QueryListItem
fn clone(&self) -> QueryListItem
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryListItem
impl Debug for QueryListItem
Source§impl<'de> Deserialize<'de> for QueryListItem
impl<'de> Deserialize<'de> for QueryListItem
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 QueryListItem
impl PartialEq for QueryListItem
Source§impl Serialize for QueryListItem
impl Serialize for QueryListItem
impl Eq for QueryListItem
impl StructuralPartialEq for QueryListItem
Auto Trait Implementations§
impl Freeze for QueryListItem
impl RefUnwindSafe for QueryListItem
impl Send for QueryListItem
impl Sync for QueryListItem
impl Unpin for QueryListItem
impl UnwindSafe for QueryListItem
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