pub struct OpenGraphBuilder<M: OpenGraphTypeMarker> { /* private fields */ }Implementations§
Source§impl<M: OpenGraphTypeMarker> OpenGraphBuilder<M>
impl<M: OpenGraphTypeMarker> OpenGraphBuilder<M>
pub fn new(title: impl Into<&'static str>, image: Url, url: Url) -> Self
pub fn image_secure_url(self, image_secure_url: Url) -> Self
pub fn image_type(self, image_type: impl Into<&'static str>) -> Self
pub fn image_width(self, image_width: isize) -> Self
pub fn image_height(self, image_height: isize) -> Self
pub fn image_alt(self, image_alt: impl Into<&'static str>) -> Self
pub fn audio(self, audio: Url) -> Self
pub fn audio_secure_url(self, audio_secure_url: Url) -> Self
pub fn audio_type(self, audio_type: impl Into<&'static str>) -> Self
pub fn description(self, description: impl Into<&'static str>) -> Self
pub fn determiner(self, determiner: Determiner) -> Self
pub fn locale(self, locale: impl Into<&'static str>) -> Self
pub fn locale_alternate(self, locales: Vec<impl Into<&'static str>>) -> Self
pub fn site_name(self, site_name: impl Into<&'static str>) -> Self
pub fn video(self, video: Url) -> Self
pub fn video_secure_url(self, video_secure_url: Url) -> Self
pub fn video_type(self, video_type: impl Into<&'static str>) -> Self
pub fn video_width(self, video_width: isize) -> Self
pub fn video_height(self, video_height: isize) -> Self
pub fn video_alt(self, video_tag: impl Into<&'static str>) -> Self
pub fn custom( self, key: impl Into<&'static str>, value: impl Into<&'static str>, ) -> Self
pub fn build(self) -> OpenGraph
Source§impl OpenGraphBuilder<MusicSong>
impl OpenGraphBuilder<MusicSong>
pub fn music_duration(self, music_duration: isize) -> Self
pub fn music_album(self, music_album: Url) -> Self
pub fn music_album_disc(self, music_album_disc: isize) -> Self
pub fn music_album_track(self, music_album_track: isize) -> Self
pub fn music_musician(self, music_musician: Url) -> Self
Source§impl OpenGraphBuilder<MusicAlbum>
impl OpenGraphBuilder<MusicAlbum>
pub fn music_song(self, music_song: Url) -> Self
pub fn music_song_disc(self, music_song_disc: isize) -> Self
pub fn music_song_track(self, music_song_track: isize) -> Self
pub fn music_musician(self, music_musician: Url) -> Self
pub fn music_release_date(self, music_release_date: SystemTime) -> Self
pub fn music_release_date_chrono( self, music_release_date: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.Source§impl OpenGraphBuilder<MusicPlaylist>
impl OpenGraphBuilder<MusicPlaylist>
pub fn music_song(self, music_song: Url) -> Self
pub fn music_song_disc(self, music_song_disc: isize) -> Self
pub fn music_song_track(self, music_song_track: isize) -> Self
pub fn music_creator(self, music_creator: Url) -> Self
Source§impl OpenGraphBuilder<MusicRadioStation>
impl OpenGraphBuilder<MusicRadioStation>
pub fn music_creator(self, music_creator: Url) -> Self
Source§impl OpenGraphBuilder<VideoMovie>
impl OpenGraphBuilder<VideoMovie>
pub fn video_actor(self, video_actor: Url) -> Self
pub fn video_actor_role(self, video_actor_role: impl Into<&'static str>) -> Self
pub fn video_director(self, video_director: Url) -> Self
pub fn video_writer(self, video_writer: Url) -> Self
pub fn video_duration(self, video_duration: isize) -> Self
pub fn video_release_date(self, video_release_date: SystemTime) -> Self
pub fn video_release_date_chrono( self, video_release_date: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn video_tag(self, video_tag: impl Into<&'static str>) -> Self
Source§impl OpenGraphBuilder<VideoEpisode>
impl OpenGraphBuilder<VideoEpisode>
pub fn video_actor(self, video_actor: Url) -> Self
pub fn video_actor_role(self, video_actor_role: impl Into<&'static str>) -> Self
pub fn video_director(self, video_director: Url) -> Self
pub fn video_writer(self, video_writer: Url) -> Self
pub fn video_duration(self, video_duration: isize) -> Self
pub fn video_release_date(self, video_release_date: SystemTime) -> Self
pub fn video_release_date_chrono( self, video_release_date: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn video_tag(self, video_tag: impl Into<&'static str>) -> Self
pub fn video_series(self, video_series: Url) -> Self
Source§impl OpenGraphBuilder<VideoTvShow>
impl OpenGraphBuilder<VideoTvShow>
pub fn video_actor(self, video_actor: Url) -> Self
pub fn video_actor_role(self, video_actor_role: impl Into<&'static str>) -> Self
pub fn video_director(self, video_director: Url) -> Self
pub fn video_writer(self, video_writer: Url) -> Self
pub fn video_duration(self, video_duration: isize) -> Self
pub fn video_release_date_chrono( self, video_release_date: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn video_tag(self, video_tag: impl Into<&'static str>) -> Self
Source§impl OpenGraphBuilder<VideoOther>
impl OpenGraphBuilder<VideoOther>
pub fn video_actor(self, video_actor: Url) -> Self
pub fn video_actor_role(self, video_actor_role: impl Into<&'static str>) -> Self
pub fn video_director(self, video_director: Url) -> Self
pub fn video_writer(self, video_writer: Url) -> Self
pub fn video_duration(self, video_duration: isize) -> Self
pub fn video_release_date(self, video_release_date: SystemTime) -> Self
pub fn video_release_date_chrono( self, video_release_date: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn video_tag(self, video_tag: impl Into<&'static str>) -> Self
Source§impl OpenGraphBuilder<Article>
impl OpenGraphBuilder<Article>
pub fn article_published_time(self, article_published_time: SystemTime) -> Self
pub fn article_published_time_chrono( self, article_published_time: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn article_modified_time(self, article_modified_time: SystemTime) -> Self
pub fn article_modified_time_chrono( self, article_modified_time: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn article_expiration_time( self, article_expiration_time: SystemTime, ) -> Self
pub fn article_expiration_time_chrono( self, article_expiration_time: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn article_section(self, article_section: impl Into<&'static str>) -> Self
pub fn article_tag(self, article_tag: impl Into<&'static str>) -> Self
Source§impl OpenGraphBuilder<Book>
impl OpenGraphBuilder<Book>
pub fn book_isbn(self, book_isbn: impl Into<&'static str>) -> Self
pub fn book_release_date(self, book_release_date: SystemTime) -> Self
pub fn book_release_data_chrono( self, book_release_date: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn book_tag(self, book_tag: impl Into<&'static str>) -> Self
Source§impl OpenGraphBuilder<PaymentLink>
impl OpenGraphBuilder<PaymentLink>
pub fn payment_description( self, payment_description: impl Into<&'static str>, ) -> Self
pub fn payment_currency(self, payment_currency: impl Into<&'static str>) -> Self
pub fn payment_amount(self, payment_amount: impl Into<f64>) -> Self
pub fn payment_expires_at_chrono( self, payment_expires_at: impl Into<DateTime<Utc>>, ) -> Self
Available on crate feature
chrono only.pub fn payment_status(self, payment_status: PaymentStatus) -> Self
pub fn payment_id(self, payment_id: impl Into<&'static str>) -> Self
pub fn payment_success_url(self, payment_success_url: Url) -> Self
Source§impl OpenGraphBuilder<Profile>
impl OpenGraphBuilder<Profile>
pub fn profile_first_name( self, profile_first_name: impl Into<&'static str>, ) -> Self
pub fn profile_last_name( self, profile_last_name: impl Into<&'static str>, ) -> Self
pub fn profile_username(self, profile_username: impl Into<&'static str>) -> Self
pub fn profile_gender(self, profile_gender: Gender) -> Self
Trait Implementations§
Source§impl<M: Debug + OpenGraphTypeMarker> Debug for OpenGraphBuilder<M>
impl<M: Debug + OpenGraphTypeMarker> Debug for OpenGraphBuilder<M>
Source§impl<M: OpenGraphTypeMarker> Into<OpenGraph> for OpenGraphBuilder<M>
impl<M: OpenGraphTypeMarker> Into<OpenGraph> for OpenGraphBuilder<M>
Auto Trait Implementations§
impl<M> Freeze for OpenGraphBuilder<M>
impl<M> RefUnwindSafe for OpenGraphBuilder<M>where
M: RefUnwindSafe,
impl<M> Send for OpenGraphBuilder<M>
impl<M> Sync for OpenGraphBuilder<M>
impl<M> Unpin for OpenGraphBuilder<M>where
M: Unpin,
impl<M> UnwindSafe for OpenGraphBuilder<M>where
M: UnwindSafe,
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