pub enum Content {
File(GetByOrgByRepoContent200ResponseAnyOf),
Symlink(GetByOrgByRepoContent200ResponseAnyOf1),
Dir(DirContent),
}Expand description
Content returned by the content endpoint.
The API returns one of three shapes depending on whether the path points to a file, a symbolic link, or a directory.
Variants§
File(GetByOrgByRepoContent200ResponseAnyOf)
A regular file.
Symlink(GetByOrgByRepoContent200ResponseAnyOf1)
A symbolic link.
Dir(DirContent)
A directory listing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Content
impl<'de> Deserialize<'de> for Content
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Content
impl UnwindSafe for Content
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