pub struct ImageAttr {
pub payload_type: Option<u8>,
pub send: Option<ImageAttrList>,
pub recv: Option<ImageAttrList>,
pub recv_first: bool,
}Expand description
a=imageattr:<pt> (send|recv) <attr-list> [(send|recv) <attr-list>] (RFC 6236 section
3.1).
image-attr = "imageattr:" PT 1*2( 1*WSP ( "send" / "recv" ) 1*WSP attr-list )
PT = 1*DIGIT / "*"
attr-list = ( set *(1*WSP set) ) / "*"
set = "[" "x=" xyrange "," "y=" xyrange *( "," key-value ) "]"
key-value = ( "sar=" srange ) / ( "par=" prange ) / ( "q=" qvalue )
xyrange = ( "[" xyvalue ":" [ step ":" ] xyvalue "]" )
/ ( "[" xyvalue 1*( "," xyvalue ) "]" ) / ( xyvalue )
srange = ( "[" spvalue 1*( "," spvalue ) "]" ) / ( "[" spvalue "-" spvalue "]" )
/ ( spvalue )
prange = ( "[" spvalue "-" spvalue "]" )Fields§
§payload_type: Option<u8>The payload type; None for *, every payload type of the section.
send: Option<ImageAttrList>What the endpoint sends.
recv: Option<ImageAttrList>What the endpoint receives.
recv_first: boolWhether recv was written before send. Both orders mean the same.
Trait Implementations§
impl StructuralPartialEq for ImageAttr
Auto Trait Implementations§
impl Forget for ImageAttr
impl Freeze for ImageAttr
impl Move for ImageAttr
impl RefUnwindSafe for ImageAttr
impl Send for ImageAttr
impl Sync for ImageAttr
impl Unpin for ImageAttr
impl UnsafeUnpin for ImageAttr
impl UnwindSafe for ImageAttr
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