Enum ytextract::error::Youtube [−][src]
#[non_exhaustive]
pub enum Youtube {
NotFound,
Private,
CommunityGuidelineViolation,
GeoRestricted,
PurchaseRequired,
Unviewable,
AgeRestricted,
NudityOrSexualContentViolation,
AccountTerminated,
RemovedByUploader,
TermsOfServiceViolation,
CopyrightClaim {
claiment: String,
},
}
Expand description
A Error reported by YouTube.
This Error is #[non_exhaustive]
because YouTube can add errors at any
moment and breaking major version every time is annoying.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
A Video is not available due to Community Guideline violations.
A Video is not available in your country.
A Stream
is only available after a purchase.
A Playlist
could not be viewed. Reasons being:
- The playlist is a “Mix” or “My Mix” playlist
A Video
is not available due to nudity or sexual content violations.
The channel or the channel associated with a video was terminated.
A Video
was removed by the uploader.
A Video
is not available due to violations of YouTube’s Terms of Service.
A Video
is not available due to a copyright claim by the claiment
Fields of CopyrightClaim
claiment: String
The person that made this copyright claim
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Youtube
impl UnwindSafe for Youtube
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more