Struct blurple_hook::Embed
source · pub struct Embed { /* private fields */ }
Implementations§
source§impl Embed
impl Embed
pub fn new() -> Embed
pub fn set_title<S: AsRef<str>>(self, title: S) -> Self
pub fn set_description<S: AsRef<str>>(self, description: S) -> Self
pub fn set_url<S: AsRef<str>>(self, url: S) -> Self
pub fn set_timestamp(self, timestamp: Option<&SystemTime>) -> Self
pub fn set_colour<S: AsRef<str>>(self, colour: ColourType<S>) -> Self
pub fn set_color<S: AsRef<str>>(self, color: ColourType<S>) -> Self
pub fn set_image<A: AsRef<str>, B: AsRef<str>>( self, url: A, proxy_url: Option<B>, height: Option<usize>, width: Option<usize> ) -> Self
pub fn set_thumbnail<A: AsRef<str>, B: AsRef<str>>( self, url: A, proxy_url: Option<B>, height: Option<usize>, width: Option<usize> ) -> Self
pub fn set_video<A: AsRef<str>, B: AsRef<str>>( self, url: A, proxy_url: Option<B>, height: Option<usize>, width: Option<usize> ) -> Self
pub fn set_provider<A: AsRef<str>, B: AsRef<str>>( self, name: Option<A>, url: Option<B> ) -> Self
pub fn add_field<A: AsRef<str>, B: AsRef<str>>( self, name: A, value: B, inline: bool ) -> Self
pub fn add_fields(self, fields: &mut Vec<Field>) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Embed
impl<'de> Deserialize<'de> for Embed
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 PartialEq for Embed
impl PartialEq for Embed
impl Eq for Embed
impl StructuralPartialEq for Embed
Auto Trait Implementations§
impl RefUnwindSafe for Embed
impl Send for Embed
impl Sync for Embed
impl Unpin for Embed
impl UnwindSafe for Embed
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.