pub struct MsgCreatePinBuilder { /* private fields */ }
Expand description
Builder for MsgCreatePin
.
Implementations§
Source§impl MsgCreatePinBuilder
impl MsgCreatePinBuilder
pub fn creator(&mut self, value: String) -> &mut Self
pub fn cid(&mut self, value: Option<String>) -> &mut Self
pub fn bytes(&mut self, value: ByteSize) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn redundancy(&mut self, value: u64) -> &mut Self
pub fn time(&mut self, value: u64) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
pub fn fallback_urls(&mut self, value: Vec<String>) -> &mut Self
pub fn labels(&mut self, value: Vec<Label>) -> &mut Self
Sourcepub fn build(&self) -> Result<MsgCreatePin, MsgCreatePinBuilderError>
pub fn build(&self) -> Result<MsgCreatePin, MsgCreatePinBuilderError>
Source§impl MsgCreatePinBuilder
impl MsgCreatePinBuilder
pub fn into_message(&self) -> Result<MsgCreatePin>
Trait Implementations§
Source§impl Clone for MsgCreatePinBuilder
impl Clone for MsgCreatePinBuilder
Source§fn clone(&self) -> MsgCreatePinBuilder
fn clone(&self) -> MsgCreatePinBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for MsgCreatePinBuilder
impl RefUnwindSafe for MsgCreatePinBuilder
impl Send for MsgCreatePinBuilder
impl Sync for MsgCreatePinBuilder
impl Unpin for MsgCreatePinBuilder
impl UnwindSafe for MsgCreatePinBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request