pub struct ContentsResponse {Show 15 fields
pub links: FileLinksResponse,
pub content: Option<String>,
pub download_url: Option<String>,
pub encoding: String,
pub git_url: String,
pub html_url: String,
pub language: Option<String>,
pub name: String,
pub path: String,
pub sha: String,
pub size: f64,
pub submodule_git_url: Option<String>,
pub target: Option<String>,
pub type: String,
pub url: String,
}Fields§
§links: FileLinksResponseОбъект со ссылками: self, git, html
content: Option<String>Содержимое файла в Base64 (только для type: “file”)
download_url: Option<String>Прямая ссылка для скачивания (null для директорий)
encoding: StringКодировка содержимого (base64 для файлов)
git_url: StringСсылка на Git-объект (blob/tree)
html_url: StringСсылка на веб-интерфейс
language: Option<String>Язык программирования (если применимо)
name: StringИмя файла или папки
path: StringПолный путь от корня репозитория
sha: StringSHA-хеш объекта Git
size: f64Размер в байтах (для директорий — 0)
submodule_git_url: Option<String>submodule_git_url is populated when type is submodule, otherwise null
target: Option<String>target is populated when type is symlink, otherwise null
type: StringТип: “file”, “dir”, “symlink” или “submodule”
url: StringAPI-ссылка на этот объект
Trait Implementations§
Source§impl Clone for ContentsResponse
impl Clone for ContentsResponse
Source§fn clone(&self) -> ContentsResponse
fn clone(&self) -> ContentsResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentsResponse
impl Debug for ContentsResponse
Source§impl<'de> Deserialize<'de> for ContentsResponse
impl<'de> Deserialize<'de> for ContentsResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContentsResponse
impl RefUnwindSafe for ContentsResponse
impl Send for ContentsResponse
impl Sync for ContentsResponse
impl Unpin for ContentsResponse
impl UnsafeUnpin for ContentsResponse
impl UnwindSafe for ContentsResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more