Enum fluvio_sc_schema::topic::TopicSpec [−][src]
pub enum TopicSpec { Assigned(PartitionMaps), Computed(TopicReplicaParam), }
Variants
Assigned(PartitionMaps)
Computed(TopicReplicaParam)
Implementations
impl TopicSpec
[src]
impl TopicSpec
[src]pub fn new_assigned<J>(partition_map: J) -> TopicSpec where
J: Into<PartitionMaps>,
[src]
J: Into<PartitionMaps>,
pub fn new_computed(
partitions: i32,
replication: i32,
ignore_rack: Option<bool>
) -> TopicSpec
[src]
partitions: i32,
replication: i32,
ignore_rack: Option<bool>
) -> TopicSpec
pub fn is_computed(&self) -> bool
[src]
pub fn partitions(&self) -> i32
[src]
pub fn replication_factor(&self) -> Option<i32>
[src]
pub fn ignore_rack_assignment(&self) -> bool
[src]
pub fn type_label(&self) -> &'static str
[src]
pub fn partitions_display(&self) -> String
[src]
pub fn replication_factor_display(&self) -> String
[src]
pub fn ignore_rack_assign_display(&self) -> &'static str
[src]
pub fn partition_map_str(&self) -> Option<String>
[src]
Trait Implementations
impl DeleteSpec for TopicSpec
[src]
impl DeleteSpec for TopicSpec
[src]fn into_request<K>(key: K) -> DeleteRequest where
K: Into<Self::DeleteKey>,
[src]
fn into_request<K>(key: K) -> DeleteRequest where
K: Into<Self::DeleteKey>,
[src]convert delete key into request
impl From<(i32, i32)> for TopicSpec
[src]
impl From<(i32, i32)> for TopicSpec
[src]convert from tuple with partition and replication with rack off
impl From<TopicSpec> for AllCreatableSpec
[src]
impl From<TopicSpec> for AllCreatableSpec
[src]impl ListSpec for TopicSpec
[src]
impl ListSpec for TopicSpec
[src]type Filter = NameFilter
type Filter = NameFilter
filter type
fn into_list_request(filters: Vec<Self::Filter>) -> ListRequest
[src]
fn into_list_request(filters: Vec<Self::Filter>) -> ListRequest
[src]convert to list request with filters
impl SpecExt for TopicSpec
[src]
impl SpecExt for TopicSpec
[src]pub const OBJECT_TYPE: ObjectType
[src]
impl Creatable for TopicSpec
[src]
impl StructuralPartialEq for TopicSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for TopicSpec
impl Send for TopicSpec
impl Sync for TopicSpec
impl Unpin for TopicSpec
impl UnwindSafe for TopicSpec
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more