pub struct Summary { /* private fields */ }Expand description
Create a summary card.
Implementations§
Source§impl Summary
impl Summary
Sourcepub fn site(self, site: &str) -> Self
pub fn site(self, site: &str) -> Self
@username of website. Either twitter:site or twitter:site:id is required.
Sourcepub fn site_id(self, content: &str) -> Self
pub fn site_id(self, content: &str) -> Self
Same as twitter:site, but the user’s Twitter ID. Either twitter:site or twitter:site:id is required.
Sourcepub fn creator_id(self, content: &str) -> Self
pub fn creator_id(self, content: &str) -> Self
Twitter user ID of content creator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnwindSafe for Summary
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