Skip to main content

gist_is_whole

Function gist_is_whole 

Source
pub fn gist_is_whole(gist: &GitHubGist) -> bool
Expand description

Whether a gist payload carries file contents rather than just their names.

GitHub’s list endpoint returns files with content absent; the single-gist endpoint fills them in. A gist with no files at all carries nothing either way, and is complete as it stands.