Skip to main content

SearchParams

Struct SearchParams 

Source
pub struct SearchParams {
Show 16 fields pub q: Option<String>, pub context_type: Option<String>, pub domain: Option<String>, pub tags: Option<String>, pub agent_id: Option<String>, pub schema_uri: Option<String>, pub derived_from: Option<String>, pub created_after: Option<String>, pub created_before: Option<String>, pub data_period_start_after: Option<String>, pub data_period_end_before: Option<String>, pub expires_after: Option<String>, pub expires_before: Option<String>, pub status: Option<String>, pub limit: Option<u32>, pub cursor: Option<String>,
}
Expand description

Query parameters for GET /contexts/search.

All fields are optional; unset fields are omitted from the query string. The registry defaults status to active when not supplied.

Fields§

§q: Option<String>

Full-text search across title, description, domain, tags, agent_id, type.

§context_type: Option<String>§domain: Option<String>§tags: Option<String>

Comma-separated tag list. All listed tags must be present (AND).

§agent_id: Option<String>§schema_uri: Option<String>§derived_from: Option<String>

Filter for contexts whose derived_from includes this ctx_id.

§created_after: Option<String>

RFC 3339 lower bound on created_at.

§created_before: Option<String>

RFC 3339 upper bound on created_at.

§data_period_start_after: Option<String>

RFC 3339 lower bound on data_period.start.

§data_period_end_before: Option<String>

RFC 3339 upper bound on data_period.end.

§expires_after: Option<String>

RFC 3339 lower bound on expires_at.

§expires_before: Option<String>

RFC 3339 upper bound on expires_at.

§status: Option<String>

Filter by lifecycle status. Defaults to active.

§limit: Option<u32>

Maximum results per page (registry-capped, typically ≤ 100).

§cursor: Option<String>

Pagination cursor from a previous response.

Trait Implementations§

Source§

impl Clone for SearchParams

Source§

fn clone(&self) -> SearchParams

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SearchParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SearchParams

Source§

fn default() -> SearchParams

Returns the “default value” for a type. Read more
Source§

impl Serialize for SearchParams

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.