pub struct MetadataFields {
pub source_url: Option<String>,
pub source_description: Option<String>,
pub purpose: Option<String>,
pub license: Option<String>,
pub notes: Option<String>,
pub data_url: Option<String>,
}Expand description
Partial update payload for set_metadata. None means “leave the
existing value alone”; Some(String::new()) clears the field.
Fields§
§source_url: Option<String>§source_description: Option<String>§purpose: Option<String>§license: Option<String>§notes: Option<String>§data_url: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for MetadataFields
impl Clone for MetadataFields
Source§fn clone(&self) -> MetadataFields
fn clone(&self) -> MetadataFields
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 MetadataFields
impl Debug for MetadataFields
Source§impl Default for MetadataFields
impl Default for MetadataFields
Source§fn default() -> MetadataFields
fn default() -> MetadataFields
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetadataFields
impl RefUnwindSafe for MetadataFields
impl Send for MetadataFields
impl Sync for MetadataFields
impl Unpin for MetadataFields
impl UnsafeUnpin for MetadataFields
impl UnwindSafe for MetadataFields
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request