google_youtube_api_v3/youtube/api/comment
Types
Inserts a new resource into this collection.
pub type CommentThreadsInsertParams {
CommentThreadsInsertParams(part: List(String))
}
Constructors
-
CommentThreadsInsertParams(part: List(String))
Limits the returned comment threads to those with the specified moderation status. Not compatible with the ‘id’ filter. Valid values: published, heldForReview, likelySpam.
pub type CommentThreadsListModerationStatus {
CommentThreadsListModerationStatusPublished
CommentThreadsListModerationStatusHeldForReview
CommentThreadsListModerationStatusLikelySpam
CommentThreadsListModerationStatusRejected
}
Constructors
-
CommentThreadsListModerationStatusPublished -
CommentThreadsListModerationStatusHeldForReview -
CommentThreadsListModerationStatusLikelySpam -
CommentThreadsListModerationStatusRejected
pub type CommentThreadsListOrder {
CommentThreadsListOrderOrderUnspecified
CommentThreadsListOrderTime
CommentThreadsListOrderRelevance
}
Constructors
-
CommentThreadsListOrderOrderUnspecified -
CommentThreadsListOrderTime -
CommentThreadsListOrderRelevance
Retrieves a list of resources, possibly filtered.
pub type CommentThreadsListParams {
CommentThreadsListParams(
part: List(String),
all_threads_related_to_channel_id: option.Option(String),
channel_id: option.Option(String),
id: option.Option(List(String)),
max_results: option.Option(Int),
moderation_status: option.Option(
CommentThreadsListModerationStatus,
),
order: option.Option(CommentThreadsListOrder),
page_token: option.Option(String),
search_terms: option.Option(String),
text_format: option.Option(CommentThreadsListTextFormat),
video_id: option.Option(String),
)
}
Constructors
-
CommentThreadsListParams( part: List(String), all_threads_related_to_channel_id: option.Option(String), channel_id: option.Option(String), id: option.Option(List(String)), max_results: option.Option(Int), moderation_status: option.Option( CommentThreadsListModerationStatus, ), order: option.Option(CommentThreadsListOrder), page_token: option.Option(String), search_terms: option.Option(String), text_format: option.Option(CommentThreadsListTextFormat), video_id: option.Option(String), )
The requested text format for the returned comments.
pub type CommentThreadsListTextFormat {
CommentThreadsListTextFormatTextFormatUnspecified
CommentThreadsListTextFormatHtml
CommentThreadsListTextFormatPlainText
}
Constructors
-
CommentThreadsListTextFormatTextFormatUnspecified -
CommentThreadsListTextFormatHtml -
CommentThreadsListTextFormatPlainText
Deletes a resource.
pub type CommentsDeleteParams {
CommentsDeleteParams(id: String)
}
Constructors
-
CommentsDeleteParams(id: String)
Inserts a new resource into this collection.
pub type CommentsInsertParams {
CommentsInsertParams(part: List(String))
}
Constructors
-
CommentsInsertParams(part: List(String))
Retrieves a list of resources, possibly filtered.
pub type CommentsListParams {
CommentsListParams(
part: List(String),
id: option.Option(List(String)),
max_results: option.Option(Int),
page_token: option.Option(String),
parent_id: option.Option(String),
text_format: option.Option(CommentsListTextFormat),
)
}
Constructors
-
CommentsListParams( part: List(String), id: option.Option(List(String)), max_results: option.Option(Int), page_token: option.Option(String), parent_id: option.Option(String), text_format: option.Option(CommentsListTextFormat), )
The requested text format for the returned comments.
pub type CommentsListTextFormat {
CommentsListTextFormatTextFormatUnspecified
CommentsListTextFormatHtml
CommentsListTextFormatPlainText
}
Constructors
-
CommentsListTextFormatTextFormatUnspecified -
CommentsListTextFormatHtml -
CommentsListTextFormatPlainText
Expresses the caller’s opinion that one or more comments should be flagged as spam.
pub type CommentsMarkAsSpamParams {
CommentsMarkAsSpamParams(id: List(String))
}
Constructors
-
CommentsMarkAsSpamParams(id: List(String))
Specifies the requested moderation status. Note, comments can be in statuses, which are not available through this call. For example, this call does not allow to mark a comment as ‘likely spam’. Valid values: ‘heldForReview’, ‘published’ or ‘rejected’.
pub type CommentsSetModerationStatusModerationStatus {
CommentsSetModerationStatusModerationStatusPublished
CommentsSetModerationStatusModerationStatusHeldForReview
CommentsSetModerationStatusModerationStatusLikelySpam
CommentsSetModerationStatusModerationStatusRejected
}
Constructors
-
CommentsSetModerationStatusModerationStatusPublished -
CommentsSetModerationStatusModerationStatusHeldForReview -
CommentsSetModerationStatusModerationStatusLikelySpam -
CommentsSetModerationStatusModerationStatusRejected
Sets the moderation status of one or more comments.
pub type CommentsSetModerationStatusParams {
CommentsSetModerationStatusParams(
id: List(String),
moderation_status: CommentsSetModerationStatusModerationStatus,
ban_author: option.Option(Bool),
)
}
Constructors
-
CommentsSetModerationStatusParams( id: List(String), moderation_status: CommentsSetModerationStatusModerationStatus, ban_author: option.Option(Bool), )
Updates an existing resource.
pub type CommentsUpdateParams {
CommentsUpdateParams(part: List(String))
}
Constructors
-
CommentsUpdateParams(part: List(String))
Values
pub fn comment_threads_insert(
part: List(String),
) -> CommentThreadsInsertParams
pub fn comment_threads_insert_add_part(
params: CommentThreadsInsertParams,
value: String,
) -> CommentThreadsInsertParams
pub fn comment_threads_insert_request(
params: CommentThreadsInsertParams,
body: comment.CommentThread,
) -> request.Request
pub fn comment_threads_list(
part: List(String),
) -> CommentThreadsListParams
pub fn comment_threads_list_add_id(
params: CommentThreadsListParams,
value: String,
) -> CommentThreadsListParams
pub fn comment_threads_list_add_part(
params: CommentThreadsListParams,
value: String,
) -> CommentThreadsListParams
pub fn comment_threads_list_moderation_status_decoder() -> decode.Decoder(
CommentThreadsListModerationStatus,
)
pub fn comment_threads_list_moderation_status_to_string(
value: CommentThreadsListModerationStatus,
) -> String
pub fn comment_threads_list_order_decoder() -> decode.Decoder(
CommentThreadsListOrder,
)
pub fn comment_threads_list_order_to_string(
value: CommentThreadsListOrder,
) -> String
pub fn comment_threads_list_request(
params: CommentThreadsListParams,
) -> request.Request
pub fn comment_threads_list_text_format_decoder() -> decode.Decoder(
CommentThreadsListTextFormat,
)
pub fn comment_threads_list_text_format_to_string(
value: CommentThreadsListTextFormat,
) -> String
pub fn comment_threads_list_with_all_threads_related_to_channel_id(
params: CommentThreadsListParams,
value: String,
) -> CommentThreadsListParams
pub fn comment_threads_list_with_channel_id(
params: CommentThreadsListParams,
value: String,
) -> CommentThreadsListParams
pub fn comment_threads_list_with_id(
params: CommentThreadsListParams,
value: List(String),
) -> CommentThreadsListParams
pub fn comment_threads_list_with_max_results(
params: CommentThreadsListParams,
value: Int,
) -> CommentThreadsListParams
pub fn comment_threads_list_with_moderation_status(
params: CommentThreadsListParams,
value: CommentThreadsListModerationStatus,
) -> CommentThreadsListParams
pub fn comment_threads_list_with_order(
params: CommentThreadsListParams,
value: CommentThreadsListOrder,
) -> CommentThreadsListParams
pub fn comment_threads_list_with_page_token(
params: CommentThreadsListParams,
value: String,
) -> CommentThreadsListParams
pub fn comment_threads_list_with_search_terms(
params: CommentThreadsListParams,
value: String,
) -> CommentThreadsListParams
pub fn comment_threads_list_with_text_format(
params: CommentThreadsListParams,
value: CommentThreadsListTextFormat,
) -> CommentThreadsListParams
pub fn comment_threads_list_with_video_id(
params: CommentThreadsListParams,
value: String,
) -> CommentThreadsListParams
pub fn comments_delete(id: String) -> CommentsDeleteParams
pub fn comments_delete_request(
params: CommentsDeleteParams,
) -> request.Request
pub fn comments_insert(
part: List(String),
) -> CommentsInsertParams
pub fn comments_insert_add_part(
params: CommentsInsertParams,
value: String,
) -> CommentsInsertParams
pub fn comments_insert_request(
params: CommentsInsertParams,
body: comment.Comment,
) -> request.Request
pub fn comments_list(part: List(String)) -> CommentsListParams
pub fn comments_list_add_id(
params: CommentsListParams,
value: String,
) -> CommentsListParams
pub fn comments_list_add_part(
params: CommentsListParams,
value: String,
) -> CommentsListParams
pub fn comments_list_request(
params: CommentsListParams,
) -> request.Request
pub fn comments_list_text_format_decoder() -> decode.Decoder(
CommentsListTextFormat,
)
pub fn comments_list_text_format_to_string(
value: CommentsListTextFormat,
) -> String
pub fn comments_list_with_id(
params: CommentsListParams,
value: List(String),
) -> CommentsListParams
pub fn comments_list_with_max_results(
params: CommentsListParams,
value: Int,
) -> CommentsListParams
pub fn comments_list_with_page_token(
params: CommentsListParams,
value: String,
) -> CommentsListParams
pub fn comments_list_with_parent_id(
params: CommentsListParams,
value: String,
) -> CommentsListParams
pub fn comments_list_with_text_format(
params: CommentsListParams,
value: CommentsListTextFormat,
) -> CommentsListParams
pub fn comments_mark_as_spam(
id: List(String),
) -> CommentsMarkAsSpamParams
pub fn comments_mark_as_spam_add_id(
params: CommentsMarkAsSpamParams,
value: String,
) -> CommentsMarkAsSpamParams
pub fn comments_mark_as_spam_request(
params: CommentsMarkAsSpamParams,
) -> request.Request
pub fn comments_set_moderation_status(
id: List(String),
moderation_status: CommentsSetModerationStatusModerationStatus,
) -> CommentsSetModerationStatusParams
pub fn comments_set_moderation_status_add_id(
params: CommentsSetModerationStatusParams,
value: String,
) -> CommentsSetModerationStatusParams
pub fn comments_set_moderation_status_moderation_status_decoder() -> decode.Decoder(
CommentsSetModerationStatusModerationStatus,
)
pub fn comments_set_moderation_status_moderation_status_to_string(
value: CommentsSetModerationStatusModerationStatus,
) -> String
pub fn comments_set_moderation_status_request(
params: CommentsSetModerationStatusParams,
) -> request.Request
pub fn comments_set_moderation_status_with_ban_author(
params: CommentsSetModerationStatusParams,
value: Bool,
) -> CommentsSetModerationStatusParams
pub fn comments_update(
part: List(String),
) -> CommentsUpdateParams
pub fn comments_update_add_part(
params: CommentsUpdateParams,
value: String,
) -> CommentsUpdateParams
pub fn comments_update_request(
params: CommentsUpdateParams,
body: comment.Comment,
) -> request.Request