pub enum ReposGetContentResponseOneOf {
EntriesVector(Vec<Entries>),
ContentFile(ContentFile),
SymlinkContent(SymlinkContent),
ContentSubmodule(ContentSubmodule),
}
Expand description
All of the following types:
Vec<Entries>
ContentFile
SymlinkContent
ContentSubmodule
You can easily convert this enum to the inner value with From
and Into
, as both are implemented for each type.
Variants§
EntriesVector(Vec<Entries>)
ContentFile(ContentFile)
Content File
SymlinkContent(SymlinkContent)
An object describing a symlink
ContentSubmodule(ContentSubmodule)
An object describing a symlink
Implementations§
source§impl ReposGetContentResponseOneOf
impl ReposGetContentResponseOneOf
pub fn content_file(&self) -> Option<&ContentFile>
pub fn content_submodule(&self) -> Option<&ContentSubmodule>
pub fn vec_entries(&self) -> Option<&Vec<Entries>>
pub fn symlink_content(&self) -> Option<&SymlinkContent>
Trait Implementations§
source§impl Clone for ReposGetContentResponseOneOf
impl Clone for ReposGetContentResponseOneOf
source§fn clone(&self) -> ReposGetContentResponseOneOf
fn clone(&self) -> ReposGetContentResponseOneOf
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 ReposGetContentResponseOneOf
impl Debug for ReposGetContentResponseOneOf
source§impl<'de> Deserialize<'de> for ReposGetContentResponseOneOf
impl<'de> Deserialize<'de> for ReposGetContentResponseOneOf
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 From<ReposGetContentResponseOneOf> for Vec<Entries>
impl From<ReposGetContentResponseOneOf> for Vec<Entries>
source§fn from(f: ReposGetContentResponseOneOf) -> Self
fn from(f: ReposGetContentResponseOneOf) -> Self
Converts to this type from the input type.
source§impl JsonSchema for ReposGetContentResponseOneOf
impl JsonSchema for ReposGetContentResponseOneOf
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<ReposGetContentResponseOneOf> for ReposGetContentResponseOneOf
impl PartialEq<ReposGetContentResponseOneOf> for ReposGetContentResponseOneOf
source§fn eq(&self, other: &ReposGetContentResponseOneOf) -> bool
fn eq(&self, other: &ReposGetContentResponseOneOf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReposGetContentResponseOneOf
Auto Trait Implementations§
impl RefUnwindSafe for ReposGetContentResponseOneOf
impl Send for ReposGetContentResponseOneOf
impl Sync for ReposGetContentResponseOneOf
impl Unpin for ReposGetContentResponseOneOf
impl UnwindSafe for ReposGetContentResponseOneOf
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