pub struct PeerCapabilityV1 {
pub name: String,
pub version: String,
pub mode: String,
pub visibility: String,
pub requires_leader: bool,
pub read_only: bool,
pub idempotency_required: bool,
}Expand description
Generic capability advertised by a peer.
Fields§
§name: StringStable capability name.
version: StringCapability contract version.
mode: Stringquery, command, or stream.
visibility: Stringlocal, cluster, or tenant.
requires_leader: boolWhether service leadership is required.
read_only: boolWhether the capability is read-only.
idempotency_required: boolWhether mutating requests require idempotency.
Trait Implementations§
Source§impl Clone for PeerCapabilityV1
impl Clone for PeerCapabilityV1
Source§fn clone(&self) -> PeerCapabilityV1
fn clone(&self) -> PeerCapabilityV1
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 PeerCapabilityV1
impl Debug for PeerCapabilityV1
Source§impl<'de> Deserialize<'de> for PeerCapabilityV1
impl<'de> Deserialize<'de> for PeerCapabilityV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PeerCapabilityV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PeerCapabilityV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PeerCapabilityV1
Source§impl PartialEq for PeerCapabilityV1
impl PartialEq for PeerCapabilityV1
Source§impl Serialize for PeerCapabilityV1
impl Serialize for PeerCapabilityV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PeerCapabilityV1
Auto Trait Implementations§
impl Freeze for PeerCapabilityV1
impl RefUnwindSafe for PeerCapabilityV1
impl Send for PeerCapabilityV1
impl Sync for PeerCapabilityV1
impl Unpin for PeerCapabilityV1
impl UnsafeUnpin for PeerCapabilityV1
impl UnwindSafe for PeerCapabilityV1
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