pub struct ListRelationsQuery {
pub direction: String,
pub relation_type: String,
pub include_superseded: bool,
pub include_tombstoned: bool,
pub limit: Option<u32>,
}Expand description
GET /v1/entities/{id}/relations query parameters. The anchor entity comes
from the path id.
Fields§
§direction: Stringfrom/outgoing (default) or to/incoming.
relation_type: StringRelation-type filter; omitted → any type.
include_superseded: boolInclude superseded relations (default false).
include_tombstoned: boolInclude tombstoned relations (default false).
limit: Option<u32>Page size; omitted → 100, clamped to 1..=1000.
Implementations§
Source§impl ListRelationsQuery
impl ListRelationsQuery
Sourcepub fn side(&self) -> Result<RelationSide, String>
pub fn side(&self) -> Result<RelationSide, String>
Resolve the requested side (outgoing vs incoming).
Sourcepub fn to_from_request(
&self,
id: &str,
) -> Result<RelationListFromRequest, String>
pub fn to_from_request( &self, id: &str, ) -> Result<RelationListFromRequest, String>
Build the outgoing (RELATION_LIST_FROM) wire request from the path id.
Sourcepub fn to_to_request(&self, id: &str) -> Result<RelationListToRequest, String>
pub fn to_to_request(&self, id: &str) -> Result<RelationListToRequest, String>
Build the incoming (RELATION_LIST_TO) wire request from the path id.
Trait Implementations§
Source§impl Debug for ListRelationsQuery
impl Debug for ListRelationsQuery
Source§impl Default for ListRelationsQuery
impl Default for ListRelationsQuery
Source§impl<'de> Deserialize<'de> for ListRelationsQuery
impl<'de> Deserialize<'de> for ListRelationsQuery
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 ListRelationsQuery
impl RefUnwindSafe for ListRelationsQuery
impl Send for ListRelationsQuery
impl Sync for ListRelationsQuery
impl Unpin for ListRelationsQuery
impl UnsafeUnpin for ListRelationsQuery
impl UnwindSafe for ListRelationsQuery
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