pub struct DocumentUpdate<D> { /* private fields */ }
Expand description
A struct for building a document update operation
§Example
use m10_sdk::DocumentUpdate;
use m10_sdk::sdk::AccountMetadata;
let mut update: DocumentUpdate<AccountMetadata> = DocumentUpdate::new(uuid::Uuid::new_v4());
update.name("Test".to_string());
let operation = update.operation();
Implementations§
Source§impl DocumentUpdate<Bank>
impl DocumentUpdate<Bank>
pub fn owner(&mut self, owner: Vec<u8>) -> &mut Self
pub fn short_name(&mut self, name: String) -> &mut Self
pub fn display_name(&mut self, display_name: String) -> &mut Self
pub fn accounts(&mut self, accounts: Vec<BankAccountRef>) -> &mut Self
Source§impl DocumentUpdate<RoleBinding>
impl DocumentUpdate<RoleBinding>
pub fn owner(&mut self, owner: Bytes) -> &mut Self
pub fn name(&mut self, name: String) -> &mut Self
pub fn subject(&mut self, subject: impl DocumentId) -> &mut Self
pub fn subjects<D: DocumentId>(&mut self, subjects: Vec<D>) -> &mut Self
pub fn expressions(&mut self, expressions: Vec<Expression>) -> &mut Self
pub fn merge_repeated(&mut self, merge_repeated: bool) -> &mut Self
Source§impl DocumentUpdate<Role>
impl DocumentUpdate<Role>
Source§impl<D: Pack> DocumentUpdate<D>
impl<D: Pack> DocumentUpdate<D>
Auto Trait Implementations§
impl<D> Freeze for DocumentUpdate<D>where
D: Freeze,
impl<D> RefUnwindSafe for DocumentUpdate<D>where
D: RefUnwindSafe,
impl<D> Send for DocumentUpdate<D>where
D: Send,
impl<D> Sync for DocumentUpdate<D>where
D: Sync,
impl<D> Unpin for DocumentUpdate<D>where
D: Unpin,
impl<D> UnwindSafe for DocumentUpdate<D>where
D: UnwindSafe,
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> 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