pub struct Assets<'a> { /* private fields */ }
Expand description
A struct representing the art assets and hover text
used by an Activity
Note that all methods return Self
, and can be chained
for fluency
Implementations§
§impl<'a> Assets<'a>
impl<'a> Assets<'a>
pub fn large_image(self, large_image: &'a str) -> Assets<'a>
pub fn large_image(self, large_image: &'a str) -> Assets<'a>
Sets the name of the art asset to be used as the large image
Alternatively, the URL of the resource to be used as the large image
pub fn large_text(self, large_text: &'a str) -> Assets<'a>
pub fn large_text(self, large_text: &'a str) -> Assets<'a>
Sets the text to be shown when hovering over the large image
pub fn small_image(self, small_image: &'a str) -> Assets<'a>
pub fn small_image(self, small_image: &'a str) -> Assets<'a>
Sets the name of the art asset to be used as the small image
Alternatively, the URL of the resource to be used as the small image
pub fn small_text(self, small_text: &'a str) -> Assets<'a>
pub fn small_text(self, small_text: &'a str) -> Assets<'a>
Sets the text that is shown when hovering over the small image
Trait Implementations§
§impl<'a> Ord for Assets<'a>
impl<'a> Ord for Assets<'a>
§impl<'a> PartialEq<Assets<'a>> for Assets<'a>
impl<'a> PartialEq<Assets<'a>> for Assets<'a>
§impl<'a> PartialOrd<Assets<'a>> for Assets<'a>
impl<'a> PartialOrd<Assets<'a>> for Assets<'a>
§fn partial_cmp(&self, other: &Assets<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Assets<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl<'a> Serialize for Assets<'a>
impl<'a> Serialize for Assets<'a>
§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
impl<'a> Copy for Assets<'a>
impl<'a> Eq for Assets<'a>
impl<'a> StructuralEq for Assets<'a>
impl<'a> StructuralPartialEq for Assets<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Assets<'a>
impl<'a> Send for Assets<'a>
impl<'a> Sync for Assets<'a>
impl<'a> Unpin for Assets<'a>
impl<'a> UnwindSafe for Assets<'a>
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.