pub struct AliasRecord {
pub name: String,
pub filter: String,
pub default_limit: Option<u32>,
pub description: Option<String>,
pub params_schema: Option<String>,
}Expand description
A row returned from the _aliases table.
filter is stored as raw JSON text or a MiniJinja template string;
callers (alias_run in server.rs) are responsible for rendering and
deserialising it back to a crate::filter::ListFilter.
Fields§
§name: StringAlias name (PRIMARY KEY in _aliases).
filter: StringSerialised crate::filter::ListFilter JSON string, or a MiniJinja
template string when params_schema is Some.
default_limit: Option<u32>Optional default limit to apply when alias_run does not supply one.
description: Option<String>Optional human-readable description.
params_schema: Option<String>Optional JSON array of parameter name strings (e.g. ["project","owner"]).
None means the alias takes no parameters and the filter text is plain JSON.
Trait Implementations§
Source§impl Clone for AliasRecord
impl Clone for AliasRecord
Source§fn clone(&self) -> AliasRecord
fn clone(&self) -> AliasRecord
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 moreAuto Trait Implementations§
impl Freeze for AliasRecord
impl RefUnwindSafe for AliasRecord
impl Send for AliasRecord
impl Sync for AliasRecord
impl Unpin for AliasRecord
impl UnsafeUnpin for AliasRecord
impl UnwindSafe for AliasRecord
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