Struct sabre_sdk::protos::payload::SabrePayload [−][src]
pub struct SabrePayload {Show 14 fields
pub action: SabrePayload_Action,
pub create_contract: SingularPtrField<CreateContractAction>,
pub delete_contract: SingularPtrField<DeleteContractAction>,
pub execute_contract: SingularPtrField<ExecuteContractAction>,
pub create_contract_registry: SingularPtrField<CreateContractRegistryAction>,
pub delete_contract_registry: SingularPtrField<DeleteContractRegistryAction>,
pub update_contract_registry_owners: SingularPtrField<UpdateContractRegistryOwnersAction>,
pub create_namespace_registry: SingularPtrField<CreateNamespaceRegistryAction>,
pub delete_namespace_registry: SingularPtrField<DeleteNamespaceRegistryAction>,
pub update_namespace_registry_owners: SingularPtrField<UpdateNamespaceRegistryOwnersAction>,
pub create_namespace_registry_permission: SingularPtrField<CreateNamespaceRegistryPermissionAction>,
pub delete_namespace_registry_permission: SingularPtrField<DeleteNamespaceRegistryPermissionAction>,
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
}
Expand description
Generated files are compatible only with the same version of protobuf runtime.
Fields
action: SabrePayload_Action
create_contract: SingularPtrField<CreateContractAction>
delete_contract: SingularPtrField<DeleteContractAction>
execute_contract: SingularPtrField<ExecuteContractAction>
create_contract_registry: SingularPtrField<CreateContractRegistryAction>
delete_contract_registry: SingularPtrField<DeleteContractRegistryAction>
update_contract_registry_owners: SingularPtrField<UpdateContractRegistryOwnersAction>
create_namespace_registry: SingularPtrField<CreateNamespaceRegistryAction>
delete_namespace_registry: SingularPtrField<DeleteNamespaceRegistryAction>
update_namespace_registry_owners: SingularPtrField<UpdateNamespaceRegistryOwnersAction>
create_namespace_registry_permission: SingularPtrField<CreateNamespaceRegistryPermissionAction>
delete_namespace_registry_permission: SingularPtrField<DeleteNamespaceRegistryPermissionAction>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
pub fn mut_update_contract_registry_owners(
&mut self
) -> &mut UpdateContractRegistryOwnersAction
pub fn set_update_namespace_registry_owners(
&mut self,
v: UpdateNamespaceRegistryOwnersAction
)
pub fn mut_update_namespace_registry_owners(
&mut self
) -> &mut UpdateNamespaceRegistryOwnersAction
pub fn take_update_namespace_registry_owners(
&mut self
) -> UpdateNamespaceRegistryOwnersAction
pub fn get_create_namespace_registry_permission(
&self
) -> &CreateNamespaceRegistryPermissionAction
pub fn set_create_namespace_registry_permission(
&mut self,
v: CreateNamespaceRegistryPermissionAction
)
pub fn mut_create_namespace_registry_permission(
&mut self
) -> &mut CreateNamespaceRegistryPermissionAction
pub fn take_create_namespace_registry_permission(
&mut self
) -> CreateNamespaceRegistryPermissionAction
pub fn get_delete_namespace_registry_permission(
&self
) -> &DeleteNamespaceRegistryPermissionAction
pub fn set_delete_namespace_registry_permission(
&mut self,
v: DeleteNamespaceRegistryPermissionAction
)
pub fn mut_delete_namespace_registry_permission(
&mut self
) -> &mut DeleteNamespaceRegistryPermissionAction
pub fn take_delete_namespace_registry_permission(
&mut self
) -> DeleteNamespaceRegistryPermissionAction
Trait Implementations
Returns the “default value” for a type. Read more
Returns the “default value” for a type. Read more
True iff all required fields are initialized.
Always returns true
for protobuf 3. Read more
Update this message object with fields read from given stream.
Compute and cache size of this message and all nested messages
Write message to the stream. Read more
Get size previously computed by compute_size
.
Get a reference to unknown fields.
Get a mutable reference to unknown fields.
View self as mutable Any
.
Message descriptor for this message, used for reflection.
Create an empty message object. Read more
Get message descriptor for message type. Read more
Return a pointer to default immutable message with static lifetime. Read more
Parse message from stream.
Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
Write the message to the vec, prepend the message with message length encoded as varint. Read more
Update this message object with fields read from given stream.
Parse message from reader. Parse stops on EOF or when error encountered. Read more
Parse message from byte array.
Check if all required fields of this object are initialized.
Write the message to the writer.
Write the message to bytes vec.
Write the message to bytes vec.
Write the message to the writer, prepend the message with message length encoded as varint. Read more
Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SabrePayload
impl Send for SabrePayload
impl Sync for SabrePayload
impl Unpin for SabrePayload
impl UnwindSafe for SabrePayload
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more