pub struct ArtifactLocation {
    pub uri: Option<String>,
    pub uri_base_id: Option<String>,
    pub index: Option<i32>,
    pub description: Option<Message>,
    pub properties: Option<HashMap<String, Value>>,
}Expand description
Specifies the location of an artifact
Fields§
§uri: Option<String>A string containing a valid relative or absolute URI
uri_base_id: Option<String>A string which indirectly specifies the absolute URI
index: Option<i32>The index within the ‘artifacts’ array of the artifact object
description: Option<Message>A short description of the artifact location
properties: Option<HashMap<String, Value>>Key/value pairs that provide additional information about the artifact location
Implementations§
Source§impl ArtifactLocation
 
impl ArtifactLocation
Sourcepub fn from_index(index: i32) -> Self
 
pub fn from_index(index: i32) -> Self
Create an artifact location from an index
Sourcepub fn with_uri_base_id(self, uri_base_id: impl Into<String>) -> Self
 
pub fn with_uri_base_id(self, uri_base_id: impl Into<String>) -> Self
Set the URI base ID
Sourcepub fn with_description(self, description: impl Into<Message>) -> Self
 
pub fn with_description(self, description: impl Into<Message>) -> Self
Set the description
Trait Implementations§
Source§impl Clone for ArtifactLocation
 
impl Clone for ArtifactLocation
Source§fn clone(&self) -> ArtifactLocation
 
fn clone(&self) -> ArtifactLocation
Returns a duplicate 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 ArtifactLocation
 
impl Debug for ArtifactLocation
Source§impl<'de> Deserialize<'de> for ArtifactLocation
 
impl<'de> Deserialize<'de> for ArtifactLocation
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 ArtifactLocation
 
impl PartialEq for ArtifactLocation
Source§impl Serialize for ArtifactLocation
 
impl Serialize for ArtifactLocation
impl Eq for ArtifactLocation
impl StructuralPartialEq for ArtifactLocation
Auto Trait Implementations§
impl Freeze for ArtifactLocation
impl RefUnwindSafe for ArtifactLocation
impl Send for ArtifactLocation
impl Sync for ArtifactLocation
impl Unpin for ArtifactLocation
impl UnwindSafe for ArtifactLocation
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