Crate twitter_card
source ·Expand description
Example
use twitter_card::{Summary, TwitterCard};
let card = Summary::builder()
.site("@flickr")
.title("Small Island Developing States Photo Submission")
.desc("View the album on Flickr.")
.image("https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg")
.build();
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@flickr" />
<meta name="twitter:title" content="Small Island Developing States Photo Submission" />
<meta name="twitter:description" content="View the album on Flickr." />
<meta name="twitter:image" content="https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg" />
Structs
Create a summary card.
Create a summary with large image card.
Traits
Twitter Card.
Functions
Create a Twitter app id Google Play tag.
Create a Twitter app id iPad tag.
Create a Twitter app id iPhone tag.
Create a Twitter app name Google Play tag.
Create a Twitter app name iPad tag.
Create a Twitter app name iPhone tag.
Create a Twitter app url Google Play tag.
Create a Twitter app url iPad tag.
Create a Twitter app url iPhone tag.
Create a Twitter card tag.
Create a Twitter creator tag.
Create a Twitter creator id tag.
Create a Twitter description tag.
Create a Twitter image tag.
Create a Twitter image alt tag.
Create a Twitter player tag.
Create a Twitter player height tag.
Create a Twitter player stream tag.
Create a Twitter player width tag.
Create a Twitter site tag.
Create a Twitter site id tag.
Create a Twitter title tag.