pub struct CreateInput {
pub entry_location: EntryDefLocation,
pub entry_visibility: EntryVisibility,
pub entry: Entry,
pub chain_top_ordering: ChainTopOrdering,
}
Expand description
Zome input to create an entry.
Fields§
§entry_location: EntryDefLocation
The global type index for this entry (if it has one).
entry_visibility: EntryVisibility
The visibility of this entry.
entry: Entry
Entry body.
chain_top_ordering: ChainTopOrdering
ChainTopBehaviour for the write.
Implementations§
Source§impl CreateInput
impl CreateInput
Sourcepub fn new(
entry_location: impl Into<EntryDefLocation>,
entry_visibility: EntryVisibility,
entry: Entry,
chain_top_ordering: ChainTopOrdering,
) -> CreateInput
pub fn new( entry_location: impl Into<EntryDefLocation>, entry_visibility: EntryVisibility, entry: Entry, chain_top_ordering: ChainTopOrdering, ) -> CreateInput
Constructor.
Sourcepub fn into_entry(self) -> Entry
pub fn into_entry(self) -> Entry
Consume into an Entry.
Sourcepub fn chain_top_ordering(&self) -> &ChainTopOrdering
pub fn chain_top_ordering(&self) -> &ChainTopOrdering
Accessor.
Trait Implementations§
Source§impl AsRef<Entry> for CreateInput
impl AsRef<Entry> for CreateInput
Source§impl Clone for CreateInput
impl Clone for CreateInput
Source§fn clone(&self) -> CreateInput
fn clone(&self) -> CreateInput
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 CreateInput
impl Debug for CreateInput
Source§impl<'de> Deserialize<'de> for CreateInput
impl<'de> Deserialize<'de> for CreateInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateInput
impl PartialEq for CreateInput
Source§impl Serialize for CreateInput
impl Serialize for CreateInput
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
Source§impl TryFrom<&CreateInput> for SerializedBytes
impl TryFrom<&CreateInput> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &CreateInput) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &CreateInput) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<CreateInput> for SerializedBytes
impl TryFrom<CreateInput> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: CreateInput) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: CreateInput) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for CreateInput
impl TryFrom<SerializedBytes> for CreateInput
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<CreateInput, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<CreateInput, SerializedBytesError>
Performs the conversion.
impl StructuralPartialEq for CreateInput
Auto Trait Implementations§
impl Freeze for CreateInput
impl RefUnwindSafe for CreateInput
impl Send for CreateInput
impl Sync for CreateInput
impl Unpin for CreateInput
impl UnwindSafe for CreateInput
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