Expand description
Generate HTML for Twitter Card integration.
§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§
- App
- Create an app card.
- Player
- Create a player card.
- Summary
- Create a summary card.
- Summary
Large Image - Create a summary with large image card.
Traits§
- Twitter
Card - Twitter Card.
Functions§
- create_
app_ id_ googleplay - Create a Twitter app id Google Play tag.
- create_
app_ id_ ipad - Create a Twitter app id iPad tag.
- create_
app_ id_ iphone - Create a Twitter app id iPhone tag.
- create_
app_ name_ googleplay - Create a Twitter app name Google Play tag.
- create_
app_ name_ ipad - Create a Twitter app name iPad tag.
- create_
app_ name_ iphone - Create a Twitter app name iPhone tag.
- create_
app_ url_ googleplay - Create a Twitter app url Google Play tag.
- create_
app_ url_ ipad - Create a Twitter app url iPad tag.
- create_
app_ url_ iphone - Create a Twitter app url iPhone tag.
- create_
card - Create a Twitter card tag.
- create_
creator - Create a Twitter creator tag.
- create_
creator_ id - Create a Twitter creator id tag.
- create_
desc - Create a Twitter description tag.
- create_
image - Create a Twitter image tag.
- create_
image_ alt - Create a Twitter image alt tag.
- create_
player - Create a Twitter player tag.
- create_
player_ height - Create a Twitter player height tag.
- create_
player_ stream - Create a Twitter player stream tag.
- create_
player_ width - Create a Twitter player width tag.
- create_
site - Create a Twitter site tag.
- create_
site_ id - Create a Twitter site id tag.
- create_
title - Create a Twitter title tag.