pub struct VersionRequest {
pub definition: String,
pub references: Option<Vec<Reference>>,
pub branch_name: Option<String>,
}Fields§
§definition: StringSerialized definition of the version. This should be an OpenAPI 2.x, 3.x or AsyncAPI 2.x file serialized as a string, in YAML or JSON.
references: Option<Vec<Reference>>Import external references used by definition. It’s usually resources not accessible by Bump servers, like local files or internal URLs.
branch_name: Option<String>Select a branch for this new version (branch will be created if it doesn’t exist).
Defaults to the main branch.
Trait Implementations§
Source§impl Debug for VersionRequest
impl Debug for VersionRequest
Source§impl Default for VersionRequest
impl Default for VersionRequest
Source§fn default() -> VersionRequest
fn default() -> VersionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VersionRequest
impl<'de> Deserialize<'de> for VersionRequest
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 Display for VersionRequest
impl Display for VersionRequest
Auto Trait Implementations§
impl Freeze for VersionRequest
impl RefUnwindSafe for VersionRequest
impl Send for VersionRequest
impl Sync for VersionRequest
impl Unpin for VersionRequest
impl UnwindSafe for VersionRequest
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