Skip to main content

get_content

Function get_content 

Source
pub async fn get_content(
    configuration: &Configuration,
    org: &str,
    repo: &str,
    ref: Option<&str>,
    path: Option<&str>,
    depth: Option<u64>,
) -> Result<Content, Error<GetContentError>>
Expand description

Get file content or directory listing at a path.

This wraps the generated content API endpoint with correct anyOf deserialization. Returns a Content enum discriminated on the "type" field.

ยงErrors

Returns an error if the request fails or the response cannot be deserialized.