pub struct Directory {
pub name: Option<String>,
pub as_: Option<String>,
pub type_: Option<DependencyType>,
pub subdir: Option<String>,
pub rights: Option<Operations>,
pub path: Option<String>,
pub availability: Option<Availability>,
pub from_dictionary: Option<String>,
/* private fields */
}
Expand description
A directory capability.
Fields§
§name: Option<String>
The name of the capability. This is not the path of the directory. Instead it is a name used for routing.
as_: Option<String>
A rename of the capability, which can be set when routing to another component. This field is optional.
type_: Option<DependencyType>
For information on this type, see
https://fuchsia.dev/go/components/declaration#DependencyType.
This field is optional and defaults to STRONG
.
subdir: Option<String>
The subdirectory of this directory to offer instead of the root. For
example, if you set bar/baz
as the subdir of foo
, then bar/baz
will be the root of the target’s foo
. This field is optional.
rights: Option<Operations>
The maximum rights that can be set by a component using this directory. This field is required if it is being routed to a local component, otherwise, it is optional.
path: Option<String>
The path in which to install the directory. The path should have a
leading slash but no trailing slash, e.g. /config/data
. This field
is required.
availability: Option<Availability>
Optional. Cannot be set to SameAsTarget
if to
contains a local
component.
from_dictionary: Option<String>
Optional. If set, the path to the dictionary routed by from
which contains
the capability.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Directory, D> for Directory
impl<D: ResourceDialect> Decode<Directory, D> for Directory
Source§impl TypeMarker for Directory
impl TypeMarker for Directory
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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.