#[non_exhaustive]pub struct SurfaceEntityRef {
pub entity_id: Uuid,
pub label: Option<String>,
pub found: Option<bool>,
}Expand description
Cell value for entity-link columns.
Plugins construct via SurfaceEntityRef::unresolved (entity_id only).
The framework enriches label and found before sending the wire response.
found: None is a transient pre-enrichment state — must not appear in the
final wire response for cells whose resolver ran.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity_id: Uuid§label: Option<String>§found: Option<bool>Implementations§
Source§impl SurfaceEntityRef
impl SurfaceEntityRef
Sourcepub fn unresolved(entity_id: Uuid) -> SurfaceEntityRef
pub fn unresolved(entity_id: Uuid) -> SurfaceEntityRef
Constructs an unresolved ref for use by plugin handlers.
The framework enriches label and found in the enrichment step.
Trait Implementations§
Source§impl Clone for SurfaceEntityRef
impl Clone for SurfaceEntityRef
Source§fn clone(&self) -> SurfaceEntityRef
fn clone(&self) -> SurfaceEntityRef
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 moreSource§impl Debug for SurfaceEntityRef
impl Debug for SurfaceEntityRef
Source§impl<'de> Deserialize<'de> for SurfaceEntityRef
impl<'de> Deserialize<'de> for SurfaceEntityRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SurfaceEntityRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SurfaceEntityRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SurfaceEntityRef
impl Serialize for SurfaceEntityRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SurfaceEntityRef
impl RefUnwindSafe for SurfaceEntityRef
impl Send for SurfaceEntityRef
impl Sync for SurfaceEntityRef
impl Unpin for SurfaceEntityRef
impl UnsafeUnpin for SurfaceEntityRef
impl UnwindSafe for SurfaceEntityRef
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