pub enum PackageType {
Function,
Source,
Sink,
}Expand description
Pulsar Packages namespace dimension — the {type} segment of the
/admin/v3/packages/{type}/... URL. Maps to upstream’s
PackageType enum
(pulsar-packages-management/pulsar-packages-management-core/.../ PackageType.java): the broker only accepts the three lowercase
tokens function, source, sink and rejects everything else
with 400. Modelled as a closed Rust enum so the URL builder
cannot emit a value the broker will refuse.
Variants§
Function
function — Pulsar Functions JAR.
Source
source — Pulsar IO Source NAR.
Sink
sink — Pulsar IO Sink NAR.
Implementations§
Trait Implementations§
Source§impl Clone for PackageType
impl Clone for PackageType
Source§fn clone(&self) -> PackageType
fn clone(&self) -> PackageType
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 moreimpl Copy for PackageType
Source§impl Debug for PackageType
impl Debug for PackageType
impl Eq for PackageType
Source§impl FromStr for PackageType
impl FromStr for PackageType
Source§fn from_str(s: &str) -> Result<Self, AdminError>
fn from_str(s: &str) -> Result<Self, AdminError>
Parse from the lowercase tokens the broker emits (function /
source / sink). Hyphenated aliases are accepted to make the
CLI feel idiomatic — package-type=source vs the broker’s
source are equivalent.
Source§type Err = AdminError
type Err = AdminError
The associated error which can be returned from parsing.
Source§impl PartialEq for PackageType
impl PartialEq for PackageType
Source§fn eq(&self, other: &PackageType) -> bool
fn eq(&self, other: &PackageType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackageType
Auto Trait Implementations§
impl Freeze for PackageType
impl RefUnwindSafe for PackageType
impl Send for PackageType
impl Sync for PackageType
impl Unpin for PackageType
impl UnsafeUnpin for PackageType
impl UnwindSafe for PackageType
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