Struct revolute::models::EmbedOneOf
source · [−]pub struct EmbedOneOf {
pub _type: Type,
pub url: Option<String>,
pub original_url: Option<String>,
pub special: Option<Box<Special, Global>>,
pub title: Option<String>,
pub description: Option<String>,
pub image: Option<Box<Image, Global>>,
pub video: Option<Box<Video, Global>>,
pub site_name: Option<String>,
pub icon_url: Option<String>,
pub colour: Option<String>,
}Expand description
EmbedOneOf : Website metadata
Fields
_type: Typeurl: Option<String>Direct URL to web page
original_url: Option<String>Original direct URL
special: Option<Box<Special, Global>>Remote content
title: Option<String>Title of website
description: Option<String>Description of website
image: Option<Box<Image, Global>>Embedded image
video: Option<Box<Video, Global>>Embedded video
site_name: Option<String>Site name
icon_url: Option<String>URL to site icon
colour: Option<String>CSS Colour
Implementations
sourceimpl EmbedOneOf
impl EmbedOneOf
sourcepub fn new(_type: Type) -> EmbedOneOf
pub fn new(_type: Type) -> EmbedOneOf
Website metadata
Trait Implementations
sourceimpl Clone for EmbedOneOf
impl Clone for EmbedOneOf
sourcefn clone(&self) -> EmbedOneOf
fn clone(&self) -> EmbedOneOf
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for EmbedOneOf
impl Debug for EmbedOneOf
sourceimpl Default for EmbedOneOf
impl Default for EmbedOneOf
sourcefn default() -> EmbedOneOf
fn default() -> EmbedOneOf
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EmbedOneOf
impl<'de> Deserialize<'de> for EmbedOneOf
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<EmbedOneOf, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EmbedOneOf, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<EmbedOneOf> for EmbedOneOf
impl PartialEq<EmbedOneOf> for EmbedOneOf
sourcefn eq(&self, other: &EmbedOneOf) -> bool
fn eq(&self, other: &EmbedOneOf) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for EmbedOneOf
impl Serialize for EmbedOneOf
sourcefn 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
impl StructuralPartialEq for EmbedOneOf
Auto Trait Implementations
impl RefUnwindSafe for EmbedOneOf
impl Send for EmbedOneOf
impl Sync for EmbedOneOf
impl Unpin for EmbedOneOf
impl UnwindSafe for EmbedOneOf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more