pub struct ConsumerBuilder {
pub plugins: Option<Plugins>,
pub username: Option<String>,
pub group_id: Option<String>,
pub desc: Option<String>,
}Fields§
§plugins: Option<Plugins>§username: Option<String>§group_id: Option<String>§desc: Option<String>Implementations§
Source§impl ConsumerBuilder
impl ConsumerBuilder
pub fn new() -> Self
Sourcepub fn with_username(self, username: String) -> Self
pub fn with_username(self, username: String) -> Self
Name of the Consumer
Sourcepub fn with_group_id(self, group_id: String) -> Self
pub fn with_group_id(self, group_id: String) -> Self
Group of the Consumer
Sourcepub fn with_plugins(self, plugins: Plugins) -> Self
pub fn with_plugins(self, plugins: Plugins) -> Self
Plugins that are executed during the request/response cycle. See Plugins for more
pub fn build(self) -> Result<ConsumerRequest, ApisixClientError>
Trait Implementations§
Source§impl Clone for ConsumerBuilder
impl Clone for ConsumerBuilder
Source§fn clone(&self) -> ConsumerBuilder
fn clone(&self) -> ConsumerBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 ConsumerBuilder
impl Debug for ConsumerBuilder
Source§impl Default for ConsumerBuilder
impl Default for ConsumerBuilder
Source§fn default() -> ConsumerBuilder
fn default() -> ConsumerBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsumerBuilder
impl<'de> Deserialize<'de> for ConsumerBuilder
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
Source§impl From<ConsumerRequest> for ConsumerBuilder
impl From<ConsumerRequest> for ConsumerBuilder
Source§fn from(consumer: ConsumerRequest) -> Self
fn from(consumer: ConsumerRequest) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConsumerBuilder
impl PartialEq for ConsumerBuilder
Source§impl Serialize for ConsumerBuilder
impl Serialize for ConsumerBuilder
impl StructuralPartialEq for ConsumerBuilder
Auto Trait Implementations§
impl Freeze for ConsumerBuilder
impl RefUnwindSafe for ConsumerBuilder
impl Send for ConsumerBuilder
impl Sync for ConsumerBuilder
impl Unpin for ConsumerBuilder
impl UnwindSafe for ConsumerBuilder
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