Struct fidl_fuchsia_modular_internal::StoryData
source · pub struct StoryData {
pub story_info: Option<StoryInfo2>,
pub story_name: Option<String>,
pub story_options: Option<StoryOptions>,
pub story_page_id: Option<String>,
/* private fields */
}
Expand description
Metadata and summary information about a single story. Does not contain the data necessary to run a story: see story_model.fidl for that.
Fields§
§story_info: Option<StoryInfo2>
Metadata available to the SessionShell.
story_name: Option<String>
A client-supplied name for this story.
story_options: Option<StoryOptions>
Story metadata and configuration.
story_page_id: Option<String>
Page id on the user’s ledger which stores story information.
Implementations§
Trait Implementations§
source§impl Decode<StoryData> for StoryData
impl Decode<StoryData> for StoryData
source§impl PartialEq<StoryData> for StoryData
impl PartialEq<StoryData> for StoryData
source§impl ResourceTypeMarker for StoryData
impl ResourceTypeMarker for StoryData
§type Borrowed<'a> = &'a mut StoryData
type Borrowed<'a> = &'a mut StoryData
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moresource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).source§impl TypeMarker for StoryData
impl TypeMarker for StoryData
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.