pub struct ContentsResponse {Show 16 fields
pub links: Option<FileLinksResponse>,
pub content: Option<String>,
pub download_url: Option<Url>,
pub encoding: Option<String>,
pub git_url: Option<Url>,
pub html_url: Option<Url>,
pub last_commit_sha: Option<String>,
pub last_commit_when: Option<OffsetDateTime>,
pub name: Option<String>,
pub path: Option<String>,
pub sha: Option<String>,
pub size: Option<i64>,
pub submodule_git_url: Option<Url>,
pub target: Option<String>,
pub type: Option<String>,
pub url: Option<Url>,
}Expand description
ContentsResponse contains information about a repo’s entry’s (dir, file, symlink, submodule) metadata and content
Fields§
§links: Option<FileLinksResponse>§content: Option<String>content is populated when type is file, otherwise null
download_url: Option<Url>§encoding: Option<String>encoding is populated when type is file, otherwise null
git_url: Option<Url>§html_url: Option<Url>§last_commit_sha: Option<String>§last_commit_when: Option<OffsetDateTime>§name: Option<String>§path: Option<String>§sha: Option<String>§size: Option<i64>§submodule_git_url: Option<Url>submodule_git_url is populated when type is submodule, otherwise null
target: Option<String>target is populated when type is symlink, otherwise null
type: Option<String>type will be file, dir, symlink, or submodule
url: Option<Url>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 · 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
Source§impl FromResponse for ContentsResponse
impl FromResponse for ContentsResponse
fn from_response( response: ApiResponse, has_body: bool, ) -> Result<Self, StructureError>
Source§impl PartialEq for ContentsResponse
impl PartialEq for ContentsResponse
Source§impl Serialize for ContentsResponse
impl Serialize for ContentsResponse
impl StructuralPartialEq for ContentsResponse
Auto Trait Implementations§
impl Freeze for ContentsResponse
impl RefUnwindSafe for ContentsResponse
impl Send for ContentsResponse
impl Sync for ContentsResponse
impl Unpin 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