pub struct LinkBox(/* private fields */);Expand description
A wrapper type around a generic Link
Implementations§
Source§impl LinkBox
impl LinkBox
Sourcepub fn from_concrete<T>(t: T) -> Result<Self, Error>
pub fn from_concrete<T>(t: T) -> Result<Self, Error>
Coerce a concrete type into this wrapper type
This is done automatically via TryFrom in proprties setter methods
Sourcepub fn into_concrete<T>(self) -> Result<T, Error>where
T: Link + DeserializeOwned,
pub fn into_concrete<T>(self) -> Result<T, Error>where
T: Link + DeserializeOwned,
Attempt to deserialize the wrapper type to a concrete type
Before this method is called, the type should be verified via the kind or
is_kind methods
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LinkBox
impl<'de> Deserialize<'de> for LinkBox
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
Source§impl From<LinkBox> for LinkPropertiesContextTermEnum
impl From<LinkBox> for LinkPropertiesContextTermEnum
Source§fn from(item: LinkBox) -> LinkPropertiesContextTermEnum
fn from(item: LinkBox) -> LinkPropertiesContextTermEnum
Converts to this type from the input type.
Source§impl From<LinkBox> for LinkPropertiesPreviewTermEnum
impl From<LinkBox> for LinkPropertiesPreviewTermEnum
Source§fn from(item: LinkBox) -> LinkPropertiesPreviewTermEnum
fn from(item: LinkBox) -> LinkPropertiesPreviewTermEnum
Converts to this type from the input type.
Source§impl From<LinkBox> for ObjectPropertiesIconTermEnum
impl From<LinkBox> for ObjectPropertiesIconTermEnum
Source§fn from(item: LinkBox) -> ObjectPropertiesIconTermEnum
fn from(item: LinkBox) -> ObjectPropertiesIconTermEnum
Converts to this type from the input type.
Source§impl From<LinkBox> for ObjectPropertiesImageTermEnum
impl From<LinkBox> for ObjectPropertiesImageTermEnum
Source§fn from(item: LinkBox) -> ObjectPropertiesImageTermEnum
fn from(item: LinkBox) -> ObjectPropertiesImageTermEnum
Converts to this type from the input type.
Source§impl From<LinkBox> for ObjectPropertiesUrlTermEnum
impl From<LinkBox> for ObjectPropertiesUrlTermEnum
Source§fn from(item: LinkBox) -> ObjectPropertiesUrlTermEnum
fn from(item: LinkBox) -> ObjectPropertiesUrlTermEnum
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinkBox
impl RefUnwindSafe for LinkBox
impl Send for LinkBox
impl Sync for LinkBox
impl Unpin for LinkBox
impl UnsafeUnpin for LinkBox
impl UnwindSafe for LinkBox
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