pub struct PackageMetadata {
pub description: String,
pub contact: String,
pub modification_time: i64,
pub properties: HashMap<String, String>,
}Expand description
Java PackageMetadata — the metadata envelope Pulsar Packages
attaches to each (type, tenant, namespace, name, version) tuple.
Mirrors org.apache.pulsar.packages.management.core.common.PackageMetadata
(Jackson camelCase on the wire). modification_time is a
broker-side timestamp in milliseconds-since-epoch — the broker
emits it on GET and ignores caller-supplied values on PUT
(overwriting them with the receive timestamp).
Fields§
§description: StringFree-form package description.
contact: StringMaintainer contact (typically an email or team handle).
modification_time: i64Last-modification timestamp in ms-since-epoch. Read-only for
callers — the broker overwrites the value on PUT.
properties: HashMap<String, String>Arbitrary key/value labels (release notes, CI ids, etc.).
Trait Implementations§
Source§impl Clone for PackageMetadata
impl Clone for PackageMetadata
Source§fn clone(&self) -> PackageMetadata
fn clone(&self) -> PackageMetadata
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 PackageMetadata
impl Debug for PackageMetadata
Source§impl Default for PackageMetadata
impl Default for PackageMetadata
Source§fn default() -> PackageMetadata
fn default() -> PackageMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageMetadatawhere
PackageMetadata: Default,
impl<'de> Deserialize<'de> for PackageMetadatawhere
PackageMetadata: Default,
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
Auto Trait Implementations§
impl Freeze for PackageMetadata
impl RefUnwindSafe for PackageMetadata
impl Send for PackageMetadata
impl Sync for PackageMetadata
impl Unpin for PackageMetadata
impl UnsafeUnpin for PackageMetadata
impl UnwindSafe for PackageMetadata
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