mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-26 19:58:50 +01:00
98 lines
54 KiB
HTML
98 lines
54 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Central instance to access all YouTube related resource activities"><title>YouTube in google_youtube3::api - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-ac92e1bbe349e143.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="google_youtube3" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0 (07dca489a 2024-02-04)" data-channel="1.76.0" data-search-js="search-2b6ce74ff89ae146.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../google_youtube3/index.html">google_youtube3</a><span class="version">5.0.3+20240303</span></h2></div><h2 class="location"><a href="#">YouTube</a></h2><div class="sidebar-elems"><section><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.auth">auth</a></li><li><a href="#structfield.client">client</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.abuse_reports">abuse_reports</a></li><li><a href="#method.activities">activities</a></li><li><a href="#method.base_url">base_url</a></li><li><a href="#method.captions">captions</a></li><li><a href="#method.channel_banners">channel_banners</a></li><li><a href="#method.channel_sections">channel_sections</a></li><li><a href="#method.channels">channels</a></li><li><a href="#method.comment_threads">comment_threads</a></li><li><a href="#method.comments">comments</a></li><li><a href="#method.i18n_languages">i18n_languages</a></li><li><a href="#method.i18n_regions">i18n_regions</a></li><li><a href="#method.live_broadcasts">live_broadcasts</a></li><li><a href="#method.live_chat_bans">live_chat_bans</a></li><li><a href="#method.live_chat_messages">live_chat_messages</a></li><li><a href="#method.live_chat_moderators">live_chat_moderators</a></li><li><a href="#method.live_streams">live_streams</a></li><li><a href="#method.members">members</a></li><li><a href="#method.memberships_levels">memberships_levels</a></li><li><a href="#method.new">new</a></li><li><a href="#method.playlist_images">playlist_images</a></li><li><a href="#method.playlist_items">playlist_items</a></li><li><a href="#method.playlists">playlists</a></li><li><a href="#method.root_url">root_url</a></li><li><a href="#method.search">search</a></li><li><a href="#method.subscriptions">subscriptions</a></li><li><a href="#method.super_chat_events">super_chat_events</a></li><li><a href="#method.tests">tests</a></li><li><a href="#method.third_party_links">third_party_links</a></li><li><a href="#method.thumbnails">thumbnails</a></li><li><a href="#method.user_agent">user_agent</a></li><li><a href="#method.video_abuse_report_reasons">video_abuse_report_reasons</a></li><li><a href="#method.video_categories">video_categories</a></li><li><a href="#method.videos">videos</a></li><li><a href="#method.watermarks">watermarks</a></li><li><a href="#method.youtube">youtube</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-YouTube%3CS%3E">Clone</a></li><li><a href="#impl-Hub-for-YouTube%3CS%3E">Hub</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-YouTube%3CS%3E">!RefUnwindSafe</a></li><li><a href="#impl-UnwindSafe-for-YouTube%3CS%3E">!UnwindSafe</a></li><li><a href="#impl-Send-for-YouTube%3CS%3E">Send</a></li><li><a href="#impl-Sync-for-YouTube%3CS%3E">Sync</a></li><li><a href="#impl-Unpin-for-YouTube%3CS%3E">Unpin</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a href="#impl-Instrument-for-T">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a href="#impl-ToOwned-for-T">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li><li><a href="#impl-WithSubscriber-for-T">WithSubscriber</a></li></ul></section><h2><a href="index.html">In google_youtube3::api</a></h2></div></nav><div class="sidebar-resizer"></div>
|
||
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../google_youtube3/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="../index.html">google_youtube3</a>::<wbr><a href="index.html">api</a>::<wbr><a class="struct" href="#">YouTube</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/google_youtube3/api.rs.html#142-148">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub struct YouTube<S> {
|
||
pub client: <a class="struct" href="../../hyper/client/client/struct.Client.html" title="struct hyper::client::client::Client">Client</a><S, <a class="struct" href="../../hyper/body/body/struct.Body.html" title="struct hyper::body::body::Body">Body</a>>,
|
||
pub auth: <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../google_apis_common/auth/trait.GetToken.html" title="trait google_apis_common::auth::GetToken">GetToken</a>>,
|
||
<span class="comment">/* private fields */</span>
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Central instance to access all YouTube related resource activities</p>
|
||
<h2 id="examples"><a href="#examples">Examples</a></h2>
|
||
<p>Instantiate a new hub</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">extern crate </span>hyper;
|
||
<span class="kw">extern crate </span>hyper_rustls;
|
||
<span class="kw">extern crate </span>google_youtube3 <span class="kw">as </span>youtube3;
|
||
<span class="kw">use </span>youtube3::{<span class="prelude-ty">Result</span>, Error};
|
||
<span class="kw">use </span>std::default::Default;
|
||
<span class="kw">use </span>youtube3::{YouTube, oauth2, hyper, hyper_rustls, chrono, FieldMask};
|
||
|
||
<span class="comment">// Get an ApplicationSecret instance by some means. It contains the `client_id` and
|
||
// `client_secret`, among other things.
|
||
</span><span class="kw">let </span>secret: oauth2::ApplicationSecret = Default::default();
|
||
<span class="comment">// Instantiate the authenticator. It will choose a suitable authentication flow for you,
|
||
// unless you replace `None` with the desired Flow.
|
||
// Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about
|
||
// what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
|
||
// retrieve them from storage.
|
||
</span><span class="kw">let </span>auth = oauth2::InstalledFlowAuthenticator::builder(
|
||
secret,
|
||
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
|
||
).build().<span class="kw">await</span>.unwrap();
|
||
<span class="kw">let </span><span class="kw-2">mut </span>hub = YouTube::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
|
||
<span class="comment">// You can configure optional parameters by calling the respective setters at will, and
|
||
// execute the final call using `doit()`.
|
||
// Values shown here are possibly random and not representative !
|
||
</span><span class="kw">let </span>result = hub.videos().list(<span class="kw-2">&</span><span class="macro">vec!</span>[<span class="string">"gubergren"</span>.into()])
|
||
.video_category_id(<span class="string">"rebum."</span>)
|
||
.region_code(<span class="string">"est"</span>)
|
||
.page_token(<span class="string">"ipsum"</span>)
|
||
.on_behalf_of_content_owner(<span class="string">"ipsum"</span>)
|
||
.my_rating(<span class="string">"est"</span>)
|
||
.max_width(-<span class="number">62</span>)
|
||
.max_results(<span class="number">84</span>)
|
||
.max_height(-<span class="number">99</span>)
|
||
.locale(<span class="string">"Lorem"</span>)
|
||
.add_id(<span class="string">"eos"</span>)
|
||
.hl(<span class="string">"labore"</span>)
|
||
.chart(<span class="string">"sed"</span>)
|
||
.doit().<span class="kw">await</span>;
|
||
|
||
<span class="kw">match </span>result {
|
||
<span class="prelude-val">Err</span>(e) => <span class="kw">match </span>e {
|
||
<span class="comment">// The Error enum provides details about what exactly happened.
|
||
// You can also just use its `Debug`, `Display` or `Error` traits
|
||
</span>Error::HttpError(<span class="kw">_</span>)
|
||
|Error::Io(<span class="kw">_</span>)
|
||
|Error::MissingAPIKey
|
||
|Error::MissingToken(<span class="kw">_</span>)
|
||
|Error::Cancelled
|
||
|Error::UploadSizeLimitExceeded(<span class="kw">_</span>, <span class="kw">_</span>)
|
||
|Error::Failure(<span class="kw">_</span>)
|
||
|Error::BadRequest(<span class="kw">_</span>)
|
||
|Error::FieldClash(<span class="kw">_</span>)
|
||
|Error::JsonDecodeError(<span class="kw">_</span>, <span class="kw">_</span>) => <span class="macro">println!</span>(<span class="string">"{}"</span>, e),
|
||
},
|
||
<span class="prelude-val">Ok</span>(res) => <span class="macro">println!</span>(<span class="string">"Success: {:?}"</span>, res),
|
||
}</code></pre></div>
|
||
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.client" class="structfield section-header"><a href="#structfield.client" class="anchor field">§</a><code>client: <a class="struct" href="../../hyper/client/client/struct.Client.html" title="struct hyper::client::client::Client">Client</a><S, <a class="struct" href="../../hyper/body/body/struct.Body.html" title="struct hyper::body::body::Body">Body</a>></code></span><span id="structfield.auth" class="structfield section-header"><a href="#structfield.auth" class="anchor field">§</a><code>auth: <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../../google_apis_common/auth/trait.GetToken.html" title="trait google_apis_common::auth::GetToken">GetToken</a>></code></span><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-YouTube%3CS%3E" class="impl"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#152-281">source</a><a href="#impl-YouTube%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<'a, S> <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S></h3></section></summary><div class="impl-items"><section id="method.new" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#154-162">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a><A: 'static + <a class="trait" href="../../google_apis_common/auth/trait.GetToken.html" title="trait google_apis_common::auth::GetToken">GetToken</a>>(
|
||
client: <a class="struct" href="../../hyper/client/client/struct.Client.html" title="struct hyper::client::client::Client">Client</a><S, <a class="struct" href="../../hyper/body/body/struct.Body.html" title="struct hyper::body::body::Body">Body</a>>,
|
||
auth: A
|
||
) -> <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S></h4></section><section id="method.abuse_reports" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#164-166">source</a><h4 class="code-header">pub fn <a href="#method.abuse_reports" class="fn">abuse_reports</a>(&'a self) -> <a class="struct" href="struct.AbuseReportMethods.html" title="struct google_youtube3::api::AbuseReportMethods">AbuseReportMethods</a><'a, S></h4></section><section id="method.activities" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#167-169">source</a><h4 class="code-header">pub fn <a href="#method.activities" class="fn">activities</a>(&'a self) -> <a class="struct" href="struct.ActivityMethods.html" title="struct google_youtube3::api::ActivityMethods">ActivityMethods</a><'a, S></h4></section><section id="method.captions" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#170-172">source</a><h4 class="code-header">pub fn <a href="#method.captions" class="fn">captions</a>(&'a self) -> <a class="struct" href="struct.CaptionMethods.html" title="struct google_youtube3::api::CaptionMethods">CaptionMethods</a><'a, S></h4></section><section id="method.channel_banners" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#173-175">source</a><h4 class="code-header">pub fn <a href="#method.channel_banners" class="fn">channel_banners</a>(&'a self) -> <a class="struct" href="struct.ChannelBannerMethods.html" title="struct google_youtube3::api::ChannelBannerMethods">ChannelBannerMethods</a><'a, S></h4></section><section id="method.channel_sections" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#176-178">source</a><h4 class="code-header">pub fn <a href="#method.channel_sections" class="fn">channel_sections</a>(&'a self) -> <a class="struct" href="struct.ChannelSectionMethods.html" title="struct google_youtube3::api::ChannelSectionMethods">ChannelSectionMethods</a><'a, S></h4></section><section id="method.channels" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#179-181">source</a><h4 class="code-header">pub fn <a href="#method.channels" class="fn">channels</a>(&'a self) -> <a class="struct" href="struct.ChannelMethods.html" title="struct google_youtube3::api::ChannelMethods">ChannelMethods</a><'a, S></h4></section><section id="method.comment_threads" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#182-184">source</a><h4 class="code-header">pub fn <a href="#method.comment_threads" class="fn">comment_threads</a>(&'a self) -> <a class="struct" href="struct.CommentThreadMethods.html" title="struct google_youtube3::api::CommentThreadMethods">CommentThreadMethods</a><'a, S></h4></section><section id="method.comments" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#185-187">source</a><h4 class="code-header">pub fn <a href="#method.comments" class="fn">comments</a>(&'a self) -> <a class="struct" href="struct.CommentMethods.html" title="struct google_youtube3::api::CommentMethods">CommentMethods</a><'a, S></h4></section><section id="method.i18n_languages" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#188-190">source</a><h4 class="code-header">pub fn <a href="#method.i18n_languages" class="fn">i18n_languages</a>(&'a self) -> <a class="struct" href="struct.I18nLanguageMethods.html" title="struct google_youtube3::api::I18nLanguageMethods">I18nLanguageMethods</a><'a, S></h4></section><section id="method.i18n_regions" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#191-193">source</a><h4 class="code-header">pub fn <a href="#method.i18n_regions" class="fn">i18n_regions</a>(&'a self) -> <a class="struct" href="struct.I18nRegionMethods.html" title="struct google_youtube3::api::I18nRegionMethods">I18nRegionMethods</a><'a, S></h4></section><section id="method.live_broadcasts" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#194-196">source</a><h4 class="code-header">pub fn <a href="#method.live_broadcasts" class="fn">live_broadcasts</a>(&'a self) -> <a class="struct" href="struct.LiveBroadcastMethods.html" title="struct google_youtube3::api::LiveBroadcastMethods">LiveBroadcastMethods</a><'a, S></h4></section><section id="method.live_chat_bans" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#197-199">source</a><h4 class="code-header">pub fn <a href="#method.live_chat_bans" class="fn">live_chat_bans</a>(&'a self) -> <a class="struct" href="struct.LiveChatBanMethods.html" title="struct google_youtube3::api::LiveChatBanMethods">LiveChatBanMethods</a><'a, S></h4></section><section id="method.live_chat_messages" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#200-202">source</a><h4 class="code-header">pub fn <a href="#method.live_chat_messages" class="fn">live_chat_messages</a>(&'a self) -> <a class="struct" href="struct.LiveChatMessageMethods.html" title="struct google_youtube3::api::LiveChatMessageMethods">LiveChatMessageMethods</a><'a, S></h4></section><section id="method.live_chat_moderators" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#203-205">source</a><h4 class="code-header">pub fn <a href="#method.live_chat_moderators" class="fn">live_chat_moderators</a>(&'a self) -> <a class="struct" href="struct.LiveChatModeratorMethods.html" title="struct google_youtube3::api::LiveChatModeratorMethods">LiveChatModeratorMethods</a><'a, S></h4></section><section id="method.live_streams" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#206-208">source</a><h4 class="code-header">pub fn <a href="#method.live_streams" class="fn">live_streams</a>(&'a self) -> <a class="struct" href="struct.LiveStreamMethods.html" title="struct google_youtube3::api::LiveStreamMethods">LiveStreamMethods</a><'a, S></h4></section><section id="method.members" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#209-211">source</a><h4 class="code-header">pub fn <a href="#method.members" class="fn">members</a>(&'a self) -> <a class="struct" href="struct.MemberMethods.html" title="struct google_youtube3::api::MemberMethods">MemberMethods</a><'a, S></h4></section><section id="method.memberships_levels" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#212-214">source</a><h4 class="code-header">pub fn <a href="#method.memberships_levels" class="fn">memberships_levels</a>(&'a self) -> <a class="struct" href="struct.MembershipsLevelMethods.html" title="struct google_youtube3::api::MembershipsLevelMethods">MembershipsLevelMethods</a><'a, S></h4></section><section id="method.playlist_images" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#215-217">source</a><h4 class="code-header">pub fn <a href="#method.playlist_images" class="fn">playlist_images</a>(&'a self) -> <a class="struct" href="struct.PlaylistImageMethods.html" title="struct google_youtube3::api::PlaylistImageMethods">PlaylistImageMethods</a><'a, S></h4></section><section id="method.playlist_items" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#218-220">source</a><h4 class="code-header">pub fn <a href="#method.playlist_items" class="fn">playlist_items</a>(&'a self) -> <a class="struct" href="struct.PlaylistItemMethods.html" title="struct google_youtube3::api::PlaylistItemMethods">PlaylistItemMethods</a><'a, S></h4></section><section id="method.playlists" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#221-223">source</a><h4 class="code-header">pub fn <a href="#method.playlists" class="fn">playlists</a>(&'a self) -> <a class="struct" href="struct.PlaylistMethods.html" title="struct google_youtube3::api::PlaylistMethods">PlaylistMethods</a><'a, S></h4></section><section id="method.search" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#224-226">source</a><h4 class="code-header">pub fn <a href="#method.search" class="fn">search</a>(&'a self) -> <a class="struct" href="struct.SearchMethods.html" title="struct google_youtube3::api::SearchMethods">SearchMethods</a><'a, S></h4></section><section id="method.subscriptions" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#227-229">source</a><h4 class="code-header">pub fn <a href="#method.subscriptions" class="fn">subscriptions</a>(&'a self) -> <a class="struct" href="struct.SubscriptionMethods.html" title="struct google_youtube3::api::SubscriptionMethods">SubscriptionMethods</a><'a, S></h4></section><section id="method.super_chat_events" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#230-232">source</a><h4 class="code-header">pub fn <a href="#method.super_chat_events" class="fn">super_chat_events</a>(&'a self) -> <a class="struct" href="struct.SuperChatEventMethods.html" title="struct google_youtube3::api::SuperChatEventMethods">SuperChatEventMethods</a><'a, S></h4></section><section id="method.tests" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#233-235">source</a><h4 class="code-header">pub fn <a href="#method.tests" class="fn">tests</a>(&'a self) -> <a class="struct" href="struct.TestMethods.html" title="struct google_youtube3::api::TestMethods">TestMethods</a><'a, S></h4></section><section id="method.third_party_links" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#236-238">source</a><h4 class="code-header">pub fn <a href="#method.third_party_links" class="fn">third_party_links</a>(&'a self) -> <a class="struct" href="struct.ThirdPartyLinkMethods.html" title="struct google_youtube3::api::ThirdPartyLinkMethods">ThirdPartyLinkMethods</a><'a, S></h4></section><section id="method.thumbnails" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#239-241">source</a><h4 class="code-header">pub fn <a href="#method.thumbnails" class="fn">thumbnails</a>(&'a self) -> <a class="struct" href="struct.ThumbnailMethods.html" title="struct google_youtube3::api::ThumbnailMethods">ThumbnailMethods</a><'a, S></h4></section><section id="method.video_abuse_report_reasons" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#242-244">source</a><h4 class="code-header">pub fn <a href="#method.video_abuse_report_reasons" class="fn">video_abuse_report_reasons</a>(
|
||
&'a self
|
||
) -> <a class="struct" href="struct.VideoAbuseReportReasonMethods.html" title="struct google_youtube3::api::VideoAbuseReportReasonMethods">VideoAbuseReportReasonMethods</a><'a, S></h4></section><section id="method.video_categories" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#245-247">source</a><h4 class="code-header">pub fn <a href="#method.video_categories" class="fn">video_categories</a>(&'a self) -> <a class="struct" href="struct.VideoCategoryMethods.html" title="struct google_youtube3::api::VideoCategoryMethods">VideoCategoryMethods</a><'a, S></h4></section><section id="method.videos" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#248-250">source</a><h4 class="code-header">pub fn <a href="#method.videos" class="fn">videos</a>(&'a self) -> <a class="struct" href="struct.VideoMethods.html" title="struct google_youtube3::api::VideoMethods">VideoMethods</a><'a, S></h4></section><section id="method.watermarks" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#251-253">source</a><h4 class="code-header">pub fn <a href="#method.watermarks" class="fn">watermarks</a>(&'a self) -> <a class="struct" href="struct.WatermarkMethods.html" title="struct google_youtube3::api::WatermarkMethods">WatermarkMethods</a><'a, S></h4></section><section id="method.youtube" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#254-256">source</a><h4 class="code-header">pub fn <a href="#method.youtube" class="fn">youtube</a>(&'a self) -> <a class="struct" href="struct.YoutubeMethods.html" title="struct google_youtube3::api::YoutubeMethods">YoutubeMethods</a><'a, S></h4></section><details class="toggle method-toggle" open><summary><section id="method.user_agent" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#262-264">source</a><h4 class="code-header">pub fn <a href="#method.user_agent" class="fn">user_agent</a>(&mut self, agent_name: <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Set the user-agent header field to use in all requests to the server.
|
||
It defaults to <code>google-api-rust-client/5.0.3</code>.</p>
|
||
<p>Returns the previously set user-agent.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.base_url" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#270-272">source</a><h4 class="code-header">pub fn <a href="#method.base_url" class="fn">base_url</a>(&mut self, new_base_url: <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Set the base url to use in all requests to the server.
|
||
It defaults to <code>https://youtube.googleapis.com/</code>.</p>
|
||
<p>Returns the previously set base url.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.root_url" class="method"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#278-280">source</a><h4 class="code-header">pub fn <a href="#method.root_url" class="fn">root_url</a>(&mut self, new_root_url: <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Set the root url to use in all requests to the server.
|
||
It defaults to <code>https://youtube.googleapis.com/</code>.</p>
|
||
<p>Returns the previously set root url.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-YouTube%3CS%3E" class="impl"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#141">source</a><a href="#impl-Clone-for-YouTube%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#141">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><section id="impl-Hub-for-YouTube%3CS%3E" class="impl"><a class="src rightside" href="../../src/google_youtube3/api.rs.html#150">source</a><a href="#impl-Hub-for-YouTube%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<'a, S> <a class="trait" href="../../google_apis_common/trait.Hub.html" title="trait google_apis_common::Hub">Hub</a> for <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-YouTube%3CS%3E" class="impl"><a href="#impl-RefUnwindSafe-for-YouTube%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> !<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S></h3></section><section id="impl-Send-for-YouTube%3CS%3E" class="impl"><a href="#impl-Send-for-YouTube%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-YouTube%3CS%3E" class="impl"><a href="#impl-Sync-for-YouTube%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-YouTube%3CS%3E" class="impl"><a href="#impl-Unpin-for-YouTube%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-YouTube%3CS%3E" class="impl"><a href="#impl-UnwindSafe-for-YouTube%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S> !<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.YouTube.html" title="struct google_youtube3::api::YouTube">YouTube</a><S></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#763">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#766">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a class="src rightside" href="../../src/tracing/instrument.rs.html#325">source</a><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a class="src rightside" href="../../src/tracing/instrument.rs.html#86">source</a><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.Instrument.html#method.instrument" class="fn">instrument</a>(self, span: <a class="struct" href="../../tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'>Instruments this type with the provided <a href="../../tracing/span/struct.Span.html" title="struct tracing::span::Span"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="../../tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a class="src rightside" href="../../src/tracing/instrument.rs.html#128">source</a><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.Instrument.html#method.in_current_span" class="fn">in_current_span</a>(self) -> <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="../../tracing/span/struct.Span.html#method.current" title="associated function tracing::span::Span::current">current</a> <a href="../../tracing/span/struct.Span.html" title="struct tracing::span::Span"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a href="../../tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#747-749">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#756">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#83-85">source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#88">source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#92">source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#803-805">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#810">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#788-790">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#795">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a class="src rightside" href="../../src/tracing/instrument.rs.html#393">source</a><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a class="src rightside" href="../../src/tracing/instrument.rs.html#176-178">source</a><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fn">with_subscriber</a><S>(self, subscriber: S) -> <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="../../tracing_core/subscriber/trait.Subscriber.html" title="trait tracing_core::subscriber::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
<a href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a class="src rightside" href="../../src/tracing/instrument.rs.html#228">source</a><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -> <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><div class='docblock'>Attaches the current <a href="../../tracing/dispatcher/index.html#setting-the-default-subscriber" title="mod tracing::dispatcher">default</a> <a href="../../tracing_core/subscriber/trait.Subscriber.html" title="trait tracing_core::subscriber::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
<a href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details></div></section></div></main></body></html> |