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
NotFound
Private
CommunityGuidelineViolation
A Video is not available due to Community Guideline violations.
GeoRestricted
A Video is not available in your country.
PurchaseRequired
A Stream
is only available after a purchase.
Unviewable
A Playlist
could not be viewed. Reasons being:
- The playlist is a “Mix” or “My Mix” playlist
AgeRestricted
NudityOrSexualContentViolation
A Video
is not available due to nudity or sexual content violations.
AccountTerminated
The channel or the channel associated with a video was terminated.
RemovedByUploader
A Video
was removed by the uploader.
TermsOfServiceViolation
A Video
is not available due to violations of YouTube’s Terms of Service.
CopyrightClaim
Fields
claiment: String
The person that made this copyright claim
A Video
is not available due to a copyright claim by the claiment
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.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more