pub struct ContentsResponse {Show 15 fields
pub _links: Option<Box<FileLinksResponse>>,
pub content: Option<String>,
pub download_url: Option<String>,
pub encoding: Option<String>,
pub git_url: Option<String>,
pub html_url: Option<String>,
pub last_commit_sha: Option<String>,
pub name: Option<String>,
pub path: Option<String>,
pub sha: Option<String>,
pub size: Option<i64>,
pub submodule_git_url: Option<String>,
pub target: Option<String>,
pub type: Option<String>,
pub url: Option<String>,
}
Expand description
ContentsResponse : ContentsResponse contains information about a repo’s entry’s (dir, file, symlink, submodule) metadata and content
Fields§
§_links: Option<Box<FileLinksResponse>>
§content: Option<String>
content
is populated when type
is file
, otherwise null
download_url: Option<String>
§encoding: Option<String>
encoding
is populated when type
is file
, otherwise null
git_url: Option<String>
§html_url: Option<String>
§last_commit_sha: Option<String>
§name: Option<String>
§path: Option<String>
§sha: Option<String>
§size: Option<i64>
§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: Option<String>
type
will be file
, dir
, symlink
, or submodule
url: Option<String>
Implementations§
Source§impl ContentsResponse
impl ContentsResponse
Sourcepub fn new() -> ContentsResponse
pub fn new() -> ContentsResponse
ContentsResponse contains information about a repo’s entry’s (dir, file, symlink, submodule) metadata and content
Trait Implementations§
Source§impl Clone for ContentsResponse
impl Clone for ContentsResponse
Source§fn clone(&self) -> ContentsResponse
fn clone(&self) -> ContentsResponse
Returns a copy 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 Default for ContentsResponse
impl Default for ContentsResponse
Source§fn default() -> ContentsResponse
fn default() -> ContentsResponse
Returns the “default value” for a type. Read more
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 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