pub struct WebResource {
pub data: Option<Value>,
pub data_classification: Option<DataClassification>,
pub desc: Option<String>,
pub labels: Vec<String>,
pub name: Option<String>,
pub type_: Option<String>,
pub uid: Option<String>,
pub url_string: Option<String>,
}
Expand description
WebResource
JSON schema
{
"type": "object",
"properties": {
"data": {},
"data_classification": {
"$ref": "#/$defs/data_classification"
},
"desc": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"uid": {
"type": "string"
},
"url_string": {
"type": "string"
}
}
}
Fields§
§data: Option<Value>
§data_classification: Option<DataClassification>
§desc: Option<String>
§labels: Vec<String>
§name: Option<String>
§type_: Option<String>
§uid: Option<String>
§url_string: Option<String>
Implementations§
Source§impl WebResource
impl WebResource
pub fn builder() -> WebResource
Trait Implementations§
Source§impl Clone for WebResource
impl Clone for WebResource
Source§fn clone(&self) -> WebResource
fn clone(&self) -> WebResource
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 WebResource
impl Debug for WebResource
Source§impl<'de> Deserialize<'de> for WebResource
impl<'de> Deserialize<'de> for WebResource
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<&WebResource> for WebResource
impl From<&WebResource> for WebResource
Source§fn from(value: &WebResource) -> Self
fn from(value: &WebResource) -> Self
Converts to this type from the input type.
Source§impl From<WebResource> for WebResource
impl From<WebResource> for WebResource
Source§fn from(value: WebResource) -> Self
fn from(value: WebResource) -> Self
Converts to this type from the input type.
Source§impl Serialize for WebResource
impl Serialize for WebResource
Source§impl TryFrom<WebResource> for WebResource
impl TryFrom<WebResource> for WebResource
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WebResource) -> Result<Self, ConversionError>
fn try_from(value: WebResource) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WebResource
impl RefUnwindSafe for WebResource
impl Send for WebResource
impl Sync for WebResource
impl Unpin for WebResource
impl UnwindSafe for WebResource
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