pub struct ResolveEntityBody {
pub candidate_name: String,
pub resolution_context: String,
pub type_hint: u32,
pub allow_create: bool,
}Expand description
POST /v1/entities/resolve body.
Fields§
§candidate_name: StringThe candidate name to resolve (e.g. "Ada Lovelace").
resolution_context: StringOptional free-text context to disambiguate. Omitted → empty.
type_hint: u32Entity type hint; 0 (the default) resolves across every declared type.
allow_create: boolWhether to mint a new entity on a miss. Defaults to false (pure read).
Implementations§
Source§impl ResolveEntityBody
impl ResolveEntityBody
Sourcepub fn to_request(&self) -> Result<EntityResolveRequest, String>
pub fn to_request(&self) -> Result<EntityResolveRequest, String>
Build the wire request. Fails on a blank candidate name.
Trait Implementations§
Source§impl Debug for ResolveEntityBody
impl Debug for ResolveEntityBody
Source§impl<'de> Deserialize<'de> for ResolveEntityBody
impl<'de> Deserialize<'de> for ResolveEntityBody
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 ResolveEntityBody
impl RefUnwindSafe for ResolveEntityBody
impl Send for ResolveEntityBody
impl Sync for ResolveEntityBody
impl Unpin for ResolveEntityBody
impl UnsafeUnpin for ResolveEntityBody
impl UnwindSafe for ResolveEntityBody
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