Struct azure_devops_rust_api::hooks::models::VersionedResource
source · pub struct VersionedResource {
pub compatible_with: Option<String>,
pub resource: Option<Value>,
pub resource_version: Option<String>,
}
Expand description
Encapsulates the resource version and its data or reference to the compatible version. Only one of the two last fields should be not null.
Fields§
§compatible_with: Option<String>
Gets or sets the reference to the compatible version.
resource: Option<Value>
Gets or sets the resource data.
resource_version: Option<String>
Gets or sets the version of the resource data.
Implementations§
Trait Implementations§
source§impl Clone for VersionedResource
impl Clone for VersionedResource
source§fn clone(&self) -> VersionedResource
fn clone(&self) -> VersionedResource
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 VersionedResource
impl Debug for VersionedResource
source§impl Default for VersionedResource
impl Default for VersionedResource
source§fn default() -> VersionedResource
fn default() -> VersionedResource
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VersionedResource
impl<'de> Deserialize<'de> for VersionedResource
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 VersionedResource
impl PartialEq for VersionedResource
source§fn eq(&self, other: &VersionedResource) -> bool
fn eq(&self, other: &VersionedResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VersionedResource
impl Serialize for VersionedResource
impl StructuralPartialEq for VersionedResource
Auto Trait Implementations§
impl RefUnwindSafe for VersionedResource
impl Send for VersionedResource
impl Sync for VersionedResource
impl Unpin for VersionedResource
impl UnwindSafe for VersionedResource
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