pub struct ClientMetadata {
pub description: Option<String>,
pub tags: Vec<String>,
}Expand description
Client-generated data stored alongside a pipeline.
The fields are stored together as a single JSON object in the
client_metadata text column, so adding a field needs no migration.
Deserialization is lenient: missing keys take their default and unknown
keys are ignored. PatchClientMetadata is the optional, per-field form
used by PATCH request bodies.
JSON schema
{
"description": "Client-generated data stored alongside a pipeline.\n\nThe fields are stored together as a single JSON object in the\n`client_metadata` text column, so adding a field needs no migration.\nDeserialization is lenient: missing keys take their default and unknown\nkeys are ignored. [`PatchClientMetadata`] is the optional, per-field form\nused by `PATCH` request bodies.",
"type": "object",
"properties": {
"description": {
"description": "Human-readable description of the pipeline. Default is an empty string.",
"type": "string"
},
"tags": {
"description": "Free-form labels used to organize, group, and filter pipelines.\nDefault is no tags (empty vector).",
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields§
§description: Option<String>Human-readable description of the pipeline. Default is an empty string.
Free-form labels used to organize, group, and filter pipelines. Default is no tags (empty vector).
Implementations§
Source§impl ClientMetadata
impl ClientMetadata
pub fn builder() -> ClientMetadata
Trait Implementations§
Source§impl Clone for ClientMetadata
impl Clone for ClientMetadata
Source§fn clone(&self) -> ClientMetadata
fn clone(&self) -> ClientMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientMetadata
impl Debug for ClientMetadata
Source§impl Default for ClientMetadata
impl Default for ClientMetadata
Source§impl<'de> Deserialize<'de> for ClientMetadata
impl<'de> Deserialize<'de> for ClientMetadata
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<&ClientMetadata> for ClientMetadata
impl From<&ClientMetadata> for ClientMetadata
Source§fn from(value: &ClientMetadata) -> Self
fn from(value: &ClientMetadata) -> Self
Converts to this type from the input type.
Source§impl From<ClientMetadata> for ClientMetadata
impl From<ClientMetadata> for ClientMetadata
Source§fn from(value: ClientMetadata) -> Self
fn from(value: ClientMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for ClientMetadata
impl Serialize for ClientMetadata
Source§impl TryFrom<ClientMetadata> for ClientMetadata
impl TryFrom<ClientMetadata> for ClientMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ClientMetadata) -> Result<Self, ConversionError>
fn try_from(value: ClientMetadata) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ClientMetadata
impl RefUnwindSafe for ClientMetadata
impl Send for ClientMetadata
impl Sync for ClientMetadata
impl Unpin for ClientMetadata
impl UnsafeUnpin for ClientMetadata
impl UnwindSafe for ClientMetadata
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